/* Reset & Base Variables */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
  /* Snow Mountain Palette - Sharp & Premium */
  --color-base-dark: #1b263b; /* Deep Navy */
  --color-base-mid: #415a77; /* Steel Blue */
  --color-base-light: #778da9; /* Muted Blue Grey */
  --color-text-main: #e0e1dd; /* Off-white text */
  --color-accent: #00d4ff; /* Neon/Electric Blue for accents */
  --color-header-bg: rgba(13, 27, 42, 0.85); /* Darker, transparent */

  --color-card-bg: rgba(255, 255, 255, 0.05);
  --color-card-border: rgba(255, 255, 255, 0.1);

  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Montserrat", sans-serif;

  --font-size-body: 16px;
  --font-size-h1: 42px;
  --font-size-h2: 32px;
  --font-size-h3: 24px;

  --spacing-section: 100px;
  --spacing-item: 40px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-jp);
  color: var(--color-text-main);
  background-color: #0d1b2a;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(65, 90, 119, 0.2) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 212, 255, 0.05) 0%,
      transparent 20%
    );
  background-attachment: fixed;
  font-size: var(--font-size-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

a:hover {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

ul {
  list-style: none;
}

/* Layout Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  margin-bottom: var(--spacing-item);
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1.4;
}

h1 {
  font-size: var(--font-size-h1);
  letter-spacing: 0.08em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: var(--font-size-h2);
  display: inline-block;
  color: #fff;
  margin-bottom: 60px;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin-top: 16px;
  border-radius: 2px;
}

p {
  margin-bottom: 1.8em;
  color: #c0c5ce;
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-center h2::after {
  margin: 16px auto 0;
}
.mb-lg {
  margin-bottom: var(--spacing-section);
}
.mb-md {
  margin-bottom: var(--spacing-item);
}

/* Components: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.1em;
  border-radius: 50px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--color-base-mid),
    var(--color-base-dark)
  );
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn:hover {
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn:hover::before {
  transform: scaleX(1);
}

/* Section Styling */
section {
  padding: var(--spacing-section) 0;
}

/* Hero Section */
.hero,
.lp-hero {
  position: relative;
  background-image: url("../img/office-hero.jpg");
  background-size: cover;
  background-position: center;
  height: 90vh; /* Full screen feel */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.form-control {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

textarea.form-control {
  height: 160px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero::before,
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.7);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, #0d1b2a, transparent);
  z-index: 1;
}

.hero .container,
.lp-hero .container {
  position: relative;
  z-index: 2;
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header & Footer */
header {
  padding: 20px 0;
  background-color: var(--color-header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo a {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

nav ul {
  display: flex;
  gap: 40px;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-base-light);
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.3s;
}

nav a:hover {
  color: #fff;
  text-shadow: none;
}

nav a:hover::after {
  width: 100%;
}

footer {
  padding: 80px 0 40px;
  background-color: #0b1622;
  text-align: center;
  font-size: 13px;
  color: #555;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glass Cards */
.service-card,
.cta-box,
.warning-box {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  padding: 60px 40px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.service-card h2 {
  font-size: 20px;
  margin-bottom: 24px;
  background: none;
  -webkit-text-fill-color: initial;
  color: #fff;
}

.service-card h2::after {
  display: none;
}

.cta-box {
  background: linear-gradient(
    145deg,
    rgba(46, 66, 101, 0.4),
    rgba(13, 27, 42, 0.6)
  );
  border: 1px solid var(--color-base-mid);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* LP Specific Overrides */
.lp-hero {
  /* Generic LP Hero settings */
  background-size: cover;
  background-position: center;
}

.lp-hero-marketing {
  background-image: url("../img/marketing-advisor-hero-new.png");
}

.lp-hero-survey {
  background-image: url("../img/web-survey-hero.png");
}

.lp-lead {
  font-size: 1.25em;
  margin-bottom: 32px;
  line-height: 1.8;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.problem-solution h2::after {
  margin: 16px 0;
}

/* Webb Survey Specifics */
.problem-list {
  list-style: none;
  margin: 32px 0;
  text-align: center;
  color: var(--color-text-main);
}

.problem-list li {
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.1em;
}

.problem-list li::before {
  content: "・";
  color: var(--color-accent);
  margin-right: 8px;
}

.solution-lead {
  font-size: 1.4em;
  margin-bottom: 32px;
  font-weight: 700;
  color: #fff;
}

.solution-desc p {
  margin-bottom: 1.5em;
  font-size: 1.05em;
}

/* Contact Page Specifics */
.contact-form,
.warning-box {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.warning-box {
  margin-bottom: 48px;
}

.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 28px;
    --font-size-h2: 24px;
    --font-size-h3: 20px;
    --spacing-section: 60px;
    --spacing-item: 24px;
  }

  .container {
    padding: 0 24px;
  }

  /* Header Stacking */
  header .header-inner {
    flex-direction: column;
    gap: 16px;
  }

  nav ul {
    gap: 20px;
    font-size: 13px;
  }

  /* Grid & Layout */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero,
  .lp-hero {
    height: auto;
    min-height: 500px;
    padding: 100px 0;
  }

  /* Components */
  .service-card,
  .cta-box,
  .warning-box {
    padding: 40px 24px;
  }

  .btn {
    width: 100%;
    padding: 16px;
  }

  /* Form */
  .contact-form {
    width: 100%;
  }

  /* Text Adjustments */
  .problem-list li {
    font-size: 1em;
    text-align: left;
    display: table;
    margin: 0 auto 16px;
  }

  .lp-lead {
    font-size: 1em;
  }
}
