/* ============================================
   Deep AI
   #062439 navy · #FCECCA cream
   Instrument Serif · DM Sans · Cormorant Garamond
   ============================================ */

@font-face {
  font-family: 'Instrument Serif';
  src: url('../assets/fonts/InstrumentSerif-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../assets/fonts/InstrumentSerif-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/CormorantGaramond-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/CormorantGaramond-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700; font-style: italic; font-display: swap;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: #FCECCA;
  background: linear-gradient(180deg, #0a3350 0%, #062439 40%, #041a2d 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
::selection { background: #FCECCA; color: #062439; }

/* ---- Container ---- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 0;
  background: rgba(6, 36, 57, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(252, 236, 202, 0.06);
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeDown 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.1s forwards;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.nav-logo img {
  height: 26px;
  width: auto;
  transition: opacity 0.3s ease;
}
.nav-logo:hover img { opacity: 0.6; }

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: #FCECCA;
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              left 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-link:hover::after { width: 100%; left: 0; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 120px;
}

.hero-heading {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(68px, 10vw, 136px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 52px;
}
.hero-heading em {
  font-style: italic;
}

.hero-body {
  max-width: 520px;
  margin-left: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.hero-body--visible {
  opacity: 1;
  transform: none;
}

/* ---- Typing cursor ---- */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.8em;
  background: #FCECCA;
  margin-left: 4px;
  vertical-align: baseline;
  animation: blink 0.6s step-end infinite;
}
.typing-cursor--done {
  animation: cursorFade 0.4s forwards;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes cursorFade {
  to { opacity: 0; }
}

.hero-text {
  font-size: 17px;
  line-height: 1.8;
  opacity: 0.75;
  margin-bottom: 40px;
}

/* ---- CTA Button ---- */
.cta-button {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 18px 48px;
  border: 1px solid rgba(252, 236, 202, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #FCECCA;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.cta-button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.cta-button span {
  position: relative;
  z-index: 1;
  transition: color 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.cta-button:hover span { color: #062439; }

/* ================================================================
   CONTENT SECTIONS
   ================================================================ */
.section {
  padding: 100px 0;
  border-top: 1px solid rgba(252, 236, 202, 0.07);
}

.section-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px 56px;
  align-items: baseline;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 5px;
  white-space: nowrap;
}

.label-line {
  width: 20px;
  height: 1px;
  background: rgba(252, 236, 202, 0.4);
  flex-shrink: 0;
}

.section-content {
  max-width: 760px;
}

/* ---- Lead text ---- */
.lead-text {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* ---- Body text ---- */
.body-text {
  font-size: 17px;
  line-height: 1.8;
  opacity: 0.7;
}

.body-text--pull {
  margin-top: 24px;
  opacity: 0.5;
}

/* ---- Industry Tags ---- */
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid rgba(252, 236, 202, 0.12);
  opacity: 0.45;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.tag:hover {
  opacity: 0.7;
  border-color: rgba(252, 236, 202, 0.3);
}

/* ================================================================
   PROCESS GRID (full-width breakout)
   ================================================================ */
.section--process .section-label {
  margin-bottom: 48px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.process-step {
  padding-top: 28px;
  border-top: 1px solid rgba(252, 236, 202, 0.1);
  transition: border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}
.process-step:hover {
  border-color: rgba(252, 236, 202, 0.35);
}

.step-number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.25;
  margin-bottom: 20px;
  display: block;
}

.step-title {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.step-text {
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.process-step:hover .step-text {
  opacity: 0.7;
}

/* ================================================================
   CTA
   ================================================================ */
.cta {
  padding: 160px 0;
  text-align: center;
  border-top: 1px solid rgba(252, 236, 202, 0.07);
}

.cta-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 auto 24px;
}
.cta-heading em { font-style: italic; }

.cta-sub {
  font-size: 16px;
  opacity: 0.45;
  margin-bottom: 48px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 80px 0 48px;
  border-top: 1px solid rgba(252, 236, 202, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  height: 18px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.footer-logo:hover img { opacity: 0.65; }

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  opacity: 0.25;
}

.footer-email {
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0.3;
  transition: opacity 0.3s ease;
  margin-top: 4px;
}
.footer-email:hover {
  opacity: 0.6;
}

.footer-copy {
  font-size: 11px;
  opacity: 0.18;
  margin-top: 12px;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 960px) {
  .container, .nav { padding: 0 32px; }

  .section-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero { padding: 140px 0 100px; }
  .hero-heading { margin-bottom: 36px; }
  .hero-body { margin-left: 0; max-width: 100%; }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section { padding: 72px 0; }
  .cta { padding: 100px 0; }
  .section-content { max-width: 100%; }

  .section--process .section-label {
    margin-bottom: 36px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container, .nav { padding: 0 20px; }
  .header { padding: 22px 0; }
  .nav-logo img { height: 22px; }

  .hero {
    padding: 120px 0 72px;
    min-height: auto;
  }
  .hero-text { font-size: 16px; }
  .cta-button { padding: 16px 40px; font-size: 11px; }

  .section { padding: 56px 0; }
  .cta { padding: 72px 0; }

  .lead-text { font-size: 24px; }
  .step-title { font-size: 22px; }
  .cta-heading { font-size: clamp(24px, 6vw, 34px); }
  .cta-sub { font-size: 15px; }

  .footer { padding: 56px 0 32px; }

  .industry-tags { gap: 8px; }
  .tag { padding: 8px 16px; font-size: 10px; }

  .section--process .section-label {
    margin-bottom: 28px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
