/* ============================================================
   Bug Birdie — Computer Systems Design
   Light theme · unique palette
   ============================================================ */

:root {
  --bg: #F6F4EF;           /* warm cream body background */
  --bg-alt: #ECEAE1;       /* slightly deeper cream band */
  --surface: #FFFFFF;      /* card / panel surface */
  --ink: #1A1D21;          /* near-black primary text */
  --ink-soft: #3E444E;     /* secondary text, strong contrast */
  --accent: #0E7C6B;       /* teal accent */
  --accent-deep: #0A5B4E;  /* dark teal */
  --accent-soft: #D6E8E3;  /* pale teal tint */
  --accent-ink: #073F37;   /* teal ink for text on soft tint */
  --gold: #C98A2B;         /* warm secondary accent (sparing) */
  --line: #D9D4C5;         /* hairline borders */
  --shadow: 0 18px 44px -18px rgba(26, 29, 33, 0.18);
}

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

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

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;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================
   Navigation — top-centered inline logo
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px -18px rgba(26, 29, 33, 0.35);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 74px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-mark .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.brand-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  padding: 6px 2px;
}

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

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

.nav-cta {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-deep);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================================
   Hero — slanted / diagonal band
   ============================================================ */

.hero {
  position: relative;
  margin-top: 74px;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  color: #FFFFFF;
  padding: 110px 24px 150px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -6%;
  right: -6%;
  height: 130px;
  background: var(--bg);
  transform: rotate(-2deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 3rem;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero h1 .accent {
  color: #FFE9B8;
}

.hero p {
  color: #EAF4F1;
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-block;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-solid {
  background: #FFFFFF;
  color: var(--accent-deep);
}

.btn-solid:hover {
  background: #FFE9B8;
  color: var(--accent-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.btn-ghost:hover {
  background: #FFFFFF;
  color: var(--accent-deep);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  padding: 30px;
  backdrop-filter: blur(2px);
}

.hero-visual .stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.hero-stat {
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 12px;
  padding: 18px;
}

.hero-stat .num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-visual .code-line {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--ink);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.hero-visual .code-line .pill {
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 2px 9px;
  border-radius: 6px;
  font-weight: 700;
}

/* ============================================================
   Ticker / marquee band
   ============================================================ */

.ticker {
  background: var(--ink);
  color: #FFFFFF;
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  animation: ticker 28s linear infinite;
}

.ticker span {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 30px;
  color: #EAF4F1;
}

.ticker span em {
  color: #7FD4C4;
  font-style: normal;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Sections shared
   ============================================================ */

.section {
  padding: 96px 24px;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  display: inline-block;
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 2.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ============================================================
   Statement band
   ============================================================ */

.statement-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 84px 24px;
}

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

.statement-inner .big {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.statement-inner .big strong {
  color: var(--accent-deep);
}

.statement-inner .sig {
  margin-top: 28px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   Services — numbered / bento grid with big numerals
   ============================================================ */

.services-section {
  background: var(--bg);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 20px;
}

.bento-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bento-item .numeral {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 14px;
}

.bento-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.bento-item p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.bento-item.accent {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.bento-item.accent h3 {
  color: #FFFFFF;
}

.bento-item.accent p {
  color: #EAF4F1;
}

.bento-item.accent .numeral {
  color: #A7DED2;
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

/* ============================================================
   Process — vertical timeline
   ============================================================ */

.process-section {
  background: var(--bg-alt);
}

.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding: 0 0 42px 28px;
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--accent);
}

.timeline-item .phase {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
}

.timeline-item h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--ink-soft);
  max-width: 640px;
}

/* ============================================================
   Stats / counters
   ============================================================ */

.stats-section {
  background: var(--accent-deep);
  color: #FFFFFF;
}

.stats-section .section-head h2 {
  color: #FFFFFF;
}

.stats-section .section-head p {
  color: #CBE7E1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: #0D5A4E;
  border: 1px solid #1C6A5E;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
}

.stat-card .count {
  font-size: 2.6rem;
  font-weight: 800;
  color: #FFE9B8;
  line-height: 1;
}

.stat-card .count-label {
  margin-top: 10px;
  color: #D8EFEA;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ============================================================
   About — two column
   ============================================================ */

.about-section {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-copy h2 {
  font-size: 2.1rem;
  margin-bottom: 18px;
}

.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-points {
  list-style: none;
  margin-top: 24px;
}

.about-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 600;
}

.about-points li .tick {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-panel {
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 40px;
}

.about-panel h3 {
  color: #FFFFFF;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.about-panel p {
  color: #D8DFE6;
  margin-bottom: 14px;
  font-size: 0.96rem;
}

.about-panel .highlight {
  color: #7FD4C4;
  font-weight: 700;
}

/* ============================================================
   FAQ — accordion
   ============================================================ */

.faq-section {
  background: var(--bg-alt);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 22px 26px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q .plus {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.faq-item.open .plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 26px 24px;
  color: var(--ink-soft);
}

/* ============================================================
   Contact
   ============================================================ */

.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.contact-line {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--ink);
}

.contact-line .ico {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
  background: #FFFFFF;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: #D8DFE6;
}

.newsletter-band {
  background: var(--accent-deep);
  padding: 44px 24px;
}

.newsletter-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.newsletter-inner h3 {
  color: #FFFFFF;
  font-size: 1.4rem;
}

.newsletter-inner p {
  color: #CBE7E1;
  font-size: 0.94rem;
  max-width: 460px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  border: 1px solid #2C7A6E;
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.95rem;
  min-width: 240px;
}

.newsletter-form button {
  border: 0;
  background: #FFFFFF;
  color: var(--accent-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
}

.footer-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #AEB7C0;
  font-size: 0.92rem;
  max-width: 300px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #AEB7C0;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #7FD4C4;
}

.footer-wordmark {
  text-align: center;
  font-size: clamp(2.5rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #24282E;
  line-height: 1;
  padding: 20px 24px 30px;
  user-select: none;
}

.footer-bottom {
  border-top: 1px solid #2A2F37;
  padding: 22px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #8B94A0;
}

/* ============================================================
   Scroll reveal
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(26px);
  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;
  }

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

  .span-2, .span-3, .span-4 {
    grid-column: span 2;
  }

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

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

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-inner {
    justify-content: space-between;
    height: 66px;
  }

  .nav-brand {
    order: 1;
    margin: 0 auto;
  }

  .nav-toggle {
    order: 3;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .nav-cta {
    display: block;
    text-align: center;
    margin-top: 14px;
  }

  .hero {
    margin-top: 66px;
    padding: 80px 20px 130px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 72px 20px;
  }

  .section-head h2 {
    font-size: 1.8rem;
  }

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

  .span-2, .span-3, .span-4 {
    grid-column: span 1;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}
