/* =========================================================
   TangAo — Integrated Computer Systems Design
   Light theme: warm cream + warm-gold / amber-brown accent
   ========================================================= */

:root {
  --bg: #F7F5F0;
  --bg-soft: #F1ECE2;
  --surface: #FFFFFF;
  --ink: #1F1B15;
  --ink-soft: #57503F;
  --gold: #C8923E;
  --gold-deep: #A9782B;
  --gold-light: #E0B45C;
  --gold-faint: #F3E6C9;
  --line: #E4DCCB;
  --dark: #221B10;
  --dark-soft: #2E2517;
  --cream: #F7F5F0;
  --shadow: 0 18px 45px rgba(34, 27, 16, 0.10);
  --radius: 14px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0;
}

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

p {
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--gold);
  color: #221B10;
}

.btn-primary:hover {
  background-color: var(--gold-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  transform: translateY(-2px);
}

/* ---------- Eyebrow / section headings ---------- */

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8A5E1D;
  margin-bottom: 1.1rem;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 2.5rem;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold-deep));
}

.navbar.scrolled {
  box-shadow: 0 6px 24px rgba(34, 27, 16, 0.10);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.brand-mark {
  color: var(--gold);
  font-size: 1.1rem;
}

.navbar-links {
  display: flex;
  gap: 2rem;
}

.navbar-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.25s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--surface);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3E8E5A;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 142, 90, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(62, 142, 90, 0); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Split hero ---------- */

.split-hero {
  position: relative;
  padding: 9rem 2.5rem 5rem;
  background-color: var(--bg);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to left, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-copy h1 {
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-lede {
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.stat-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.stat-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Statement row ---------- */

.statement-row {
  background-color: var(--dark);
  padding: 5rem 2.5rem;
  color: var(--cream);
}

.statement-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.statement-mark {
  display: block;
  font-family: Georgia, serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 0.5;
  margin-bottom: 1.5rem;
}

.statement-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.35;
  color: var(--cream);
  font-weight: 500;
}

.statement-source {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- Capabilities ---------- */

.capabilities {
  padding: 6rem 2.5rem;
  background-color: var(--bg);
}

.capability-list {
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.capability {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}

.capability:hover {
  background-color: var(--bg-soft);
}

.cap-tag {
  display: inline-block;
  align-self: start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background-color: var(--surface);
  white-space: nowrap;
}

.cap-body h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.cap-body p {
  max-width: 34rem;
}

.cap-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  max-width: 240px;
}

.cap-chips li {
  font-size: 0.78rem;
  color: var(--ink-soft);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}

/* ---------- Journey timeline ---------- */

.journey-timeline {
  padding: 6rem 2.5rem;
  background-color: var(--bg-soft);
}

.timeline {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 2.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--gold-light), var(--gold-deep));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.4rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.2rem;
  top: 0.45rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--gold);
  border: 4px solid var(--bg-soft);
  box-shadow: 0 0 0 1px var(--gold-deep);
}

.timeline-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: 0 8px 24px rgba(34, 27, 16, 0.05);
}

.timeline-card h3 {
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}

.timeline-card p {
  font-size: 0.98rem;
}

/* ---------- Principles ---------- */

.principles {
  padding: 6rem 2.5rem;
  background-color: var(--bg);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.principle {
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  background-color: var(--surface);
  padding: 1.6rem 1.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.principle:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.principle-word {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.principle p {
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 6rem 2.5rem;
  background-color: var(--gold);
}

.eyebrow-on-dark {
  color: #4A3408;
}

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.cta-copy h2 {
  color: #221B10;
  margin-bottom: 1.2rem;
}

.cta-text {
  color: #4A3408;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A3408;
  min-width: 64px;
}

.contact-item a,
.contact-item span:not(.contact-label) {
  color: #221B10;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background-color: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form .btn {
  margin-top: 1.2rem;
  align-self: flex-start;
}

.form-note {
  font-size: 0.8rem;
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

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

.footer-single {
  background-color: var(--dark);
  padding: 2rem 2.5rem;
  color: var(--cream);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
}

.footer-brand .brand-mark {
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 1.8rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gold-light);
}

.footer-links a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.footer-meta {
  font-size: 0.85rem;
  color: #C9C0AF;
}

/* ---------- Scroll reveal ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-grid-bg {
    width: 100%;
  }

  .capability {
    grid-template-columns: 110px 1fr;
  }

  .cap-chips {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
  }

  .principles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 760px) {
  .navbar {
    padding: 0.8rem 1.2rem;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    gap: 0;
    background-color: var(--bg);
    border-left: 1px solid var(--line);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
  }

  .navbar.nav-open .navbar-links {
    transform: translateX(0);
  }

  .navbar-links a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .navbar-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .split-hero {
    padding: 7rem 1.2rem 3.5rem;
  }

  .statement-row {
    padding: 3.5rem 1.2rem;
  }

  .capabilities,
  .journey-timeline,
  .principles,
  .cta-band {
    padding: 4rem 1.2rem;
  }

  .capability {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
