/* AmugenIX AI — style.css
   Design tokens and section styles per amugenix_website_brief.md */

:root {
  --white: #ffffff;
  --ink: #111111;
  --ink-mid: #3a3a3a;
  --muted: #888780;
  --rule: #e8e6e0;
  --surface: #f7f6f4;
  --brand: #534AB7;
  --brand-soft: #7F77DD;
  --brand-pale: #eeedf8;

  --serif: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 2px 8px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 12px 32px rgba(17, 17, 17, 0.10);
  --shadow-brand: 0 16px 40px rgba(83, 74, 183, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-mid);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
}

.ix {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--brand);
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

section {
  padding: 96px 0;
}

@media (max-width: 599px) {
  section {
    padding: 64px 0;
  }
}

/* Motion */
.nav-links a,
.service-card,
.cta-primary,
.cta-ghost,
.cta-outline {
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
iframe:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.wordmark .ix {
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  border: 1px solid var(--brand);
  color: var(--brand);
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 8px;
  display: inline-block;
  transition: background-color 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--brand);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.2s;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
}

.mobile-nav a {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 112px;
  padding-bottom: 0;
  background: var(--white);
}

.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: 1px;
  margin-top: 0;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-mid);
  max-width: 560px;
  line-height: 1.8;
  margin-top: 20px;
}

.hero-ctas-static {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 32px 96px;
  flex-wrap: wrap;
}

.cta-primary {
  background: var(--brand);
  color: var(--white);
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 8px;
  display: inline-block;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cta-primary:hover {
  background: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

.cta-ghost {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cta-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* Hero carousel */

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  margin-top: 56px;
  background: linear-gradient(135deg, var(--brand) 0%, #3c3480 100%);
}

.hero-carousel-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-carousel-blob-a {
  width: 360px;
  height: 360px;
  background: var(--brand-soft);
  top: -120px;
  right: -80px;
}

.hero-carousel-blob-b {
  width: 260px;
  height: 260px;
  background: #ffffff;
  bottom: -100px;
  left: 10%;
  opacity: 0.08;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-slide-inner {
  max-width: 640px;
}

.hero-slide-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 14px;
  border-radius: 20px;
}

.hero-slide h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 38px);
  color: #ffffff;
  margin-top: 20px;
  line-height: 1.2;
}

.hero-slide p {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  line-height: 1.7;
  margin-top: 16px;
}

.hero-slide-cta {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 3px;
  transition: border-color 0.2s;
}

.hero-slide-cta:hover {
  border-color: #ffffff;
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-carousel-prev {
  left: 24px;
}

.hero-carousel-next {
  right: 24px;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s, transform 0.2s;
}

.hero-dot.is-active {
  background: #ffffff;
  transform: scale(1.3);
}

@media (max-width: 767px) {
  .hero {
    padding-top: 96px;
  }
  .hero-carousel {
    min-height: 480px;
  }
  .hero-carousel-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* ---------- Problem ---------- */

.problem {
  background: var(--surface);
}

.problem .eyebrow {
  margin-bottom: 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.card-number {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 40px;
  color: var(--brand-pale);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.card {
  border-left: 2px solid transparent;
  padding-left: 20px;
  margin-left: -22px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--brand);
}

.card:hover .card-number {
  color: var(--brand);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.card p {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 767px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- What we do ---------- */

.what-we-do {
  background: var(--white);
}

.what-we-do .eyebrow {
  margin-bottom: 24px;
}

.intro-block {
  max-width: 560px;
  margin-bottom: 64px;
}

.intro-block h2 {
  font-size: 36px;
  margin-bottom: 24px;
}

.intro-block p {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.service-card {
  border: 1px solid var(--rule);
  padding: 40px 32px;
  border-radius: 16px;
  background: var(--white);
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.service-card:hover .card-number {
  color: var(--brand);
}

.service-card:hover {
  border-color: var(--brand);
  background: var(--brand-pale);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 767px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- How it works ---------- */

.how-it-works {
  background: var(--surface);
}

.how-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: start;
}

.how-header h2 {
  font-size: 32px;
  white-space: pre-line;
}

.how-header p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.step {
  padding: 0 24px;
  border-left: 1px solid var(--rule);
  transition: border-color 0.2s;
}

.step:first-child {
  border-left: none;
  padding-left: 0;
}

.step:hover {
  border-color: var(--brand);
}

.step .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.step:hover h3 {
  color: var(--brand);
}

.step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 767px) {
  .how-header,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding: 32px 0 0;
  }
  .step:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* ---------- Why AmugenIX ---------- */

.why {
  background: var(--white);
}

.why-content {
  max-width: 640px;
  margin: 0 auto;
}

.why-content .eyebrow {
  margin-bottom: 24px;
}

.why-content h2 {
  font-size: 36px;
  margin-bottom: 32px;
}

.why-content p {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-details .eyebrow {
  margin-bottom: 24px;
}

.contact-details h2 {
  font-size: 32px;
  margin-bottom: 24px;
}

.contact-details > p {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-item {
  margin-bottom: 24px;
}

.contact-item .eyebrow {
  display: block;
  margin-bottom: 6px;
}

.contact-item p {
  font-size: 16px;
  color: var(--ink);
}

.native-form {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-pale);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  text-align: center;
}

.form-status {
  margin-top: 16px;
  font-size: 13px;
  min-height: 18px;
}

.form-status.is-success {
  color: #1a7f37;
}

.form-status.is-error {
  color: #c0392b;
}

.form-thanks {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.form-thanks h3 {
  margin-bottom: 8px;
}

.form-thanks p {
  color: var(--muted);
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-meta {
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 599px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
