/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0a0e1a;
  --navy2:   #111827;
  --navy3:   #1a2235;
  --blue:    #3b82f6;
  --blue2:   #60a5fa;
  --cyan:    #06b6d4;
  --green:   #10b981;
  --tint:    #f0f4ff;
  --white:   #ffffff;
  --gray1:   #f9fafb;
  --gray2:   #e5e7eb;
  --gray3:   #9ca3af;
  --gray4:   #6b7280;
  --text:    #111827;
  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
  --transition: .22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
}
.btn--primary:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(59,130,246,.35); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

.btn--nav {
  background: var(--blue);
  color: var(--white);
  padding: 10px 22px;
  font-size: 14px;
}
.btn--nav:hover { background: var(--blue2); }

.btn--full { width: 100%; justify-content: center; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(10,14,26,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.5px;
}
.logo__bracket { color: var(--cyan); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

.hero__inner { position: relative; z-index: 1; max-width: 780px; }

.hero__tag {
  display: inline-block;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: .5px;
}

.hero__headline {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 18px;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat__num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}
.stat__plus { color: var(--cyan); font-size: 24px; }
.stat__label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}
.stat__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.12);
}

/* ===== SECTIONS ===== */
.section {
  padding: 96px 0;
}
.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--tinted { background: var(--tint); }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__header--light h2 { color: var(--white); }

.section__tag {
  display: inline-block;
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 16px;
  letter-spacing: .5px;
}
.section--dark .section__tag { color: var(--cyan); }

.section__header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card__icon {
  font-size: 32px;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.3px;
}
.card p {
  font-size: 15px;
  color: var(--gray4);
  line-height: 1.65;
}

/* ===== STEPS ===== */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.step__num {
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -.2px;
}
.step p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
}

.step__arrow {
  font-size: 24px;
  color: rgba(255,255,255,.2);
  align-self: center;
  flex-shrink: 0;
  margin-top: 0;
}

/* ===== TAGS ===== */
.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tag {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--gray2);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  cursor: default;
}
.tag:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(59,130,246,.05);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 20px; left: 28px;
  font-size: 64px;
  line-height: 1;
  color: var(--blue);
  opacity: .2;
  font-family: Georgia, serif;
}
.testimonial p {
  font-size: 15px;
  color: var(--gray4);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-top: 16px;
}
.testimonial footer strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.testimonial footer span {
  font-size: 13px;
  color: var(--gray3);
}

/* ===== ABOUT ===== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text .section__tag { text-align: left; }
.about__text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.about__text p {
  font-size: 16px;
  color: var(--gray4);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about__list {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about__list li {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* ===== TERMINAL ===== */
.terminal {
  background: #0d1117;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.8;
}
.terminal__bar {
  background: #1c2333;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }
.terminal__body {
  padding: 24px 28px;
}
.terminal__body p { margin: 0; }
.t-green  { color: #28c840; }
.t-blue   { color: var(--blue2); }
.t-dim    { color: #4a5568; }
.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--blue2);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ===== CONTACT ===== */
.contact__inner { max-width: 700px; margin: 0 auto; }
.contact__sub {
  color: rgba(255,255,255,.6);
  font-size: 17px;
  margin-top: 12px;
}

.contact-form { margin-top: 48px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
.form-group + .form-group:not(.form-row .form-group) { margin-top: 20px; }
.contact-form > .form-group { margin-bottom: 20px; }

label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: .3px;
}

input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.28); }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  background: rgba(255,255,255,.09);
}
select option { background: var(--navy2); color: var(--white); }
textarea { resize: vertical; min-height: 120px; }

.form__note {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.35);
  margin-top: 16px;
}
.form__success {
  margin-top: 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: rgba(255,255,255,.8); }
.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,.3);
}

/* ===== ILLUSTRATIONS ===== */
.about__illustration {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}

.culture__sub {
  color: rgba(255,255,255,.6);
  font-size: 17px;
  margin-top: 12px;
}

.culture__illustration {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .steps { flex-direction: column; }
  .step__arrow { transform: rotate(90deg); align-self: center; }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(10,14,26,.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav__links.open { display: flex; }
  .nav__burger { display: flex; }

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

  .hero__stats { gap: 24px; }
  .stat__divider { display: none; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero { padding: 100px 0 64px; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
