/* ═══════════════════════════════════════════
   NONROBO — SaaS Landing
   Aesthetic: Dark hero, blue accent, clean grid
   Typography: Outfit (display) + DM Sans (body)
   ═══════════════════════════════════════════ */

:root {
  --blue: #0057ff;
  --blue-hover: #0046cc;
  --blue-light: #e8f0ff;
  --blue-glow: rgba(0, 87, 255, .25);
  --dark: #0a0a0f;
  --dark-card: #12121a;
  --dark-border: rgba(255, 255, 255, .08);
  /* Static palette (hero & always-dark sections) */
  --gray-900: #1a1a24;
  --gray-700: #3a3a4a;
  --gray-500: #6b6b7b;
  --gray-300: #a0a0b0;
  --gray-100: #f0f0f5;
  --gray-50: #f8f8fc;
  --white: #ffffff;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-alt: #f8f8fc;
  --surface: #ffffff;
  --surface-alt: #f8f8fc;
  --border: #f0f0f5;
  --text-primary: #1a1a24;
  --text-secondary: #3a3a4a;
  --text-muted: #6b6b7b;
  --text-faint: #a0a0b0;
  --card-hover-shadow: rgba(0, 0, 0, .04);
  --input-bg: #ffffff;
  --icon-filter: brightness(0) saturate(100%) invert(23%) sepia(90%) saturate(5000%) hue-rotate(220deg) brightness(100%);
}

[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-alt: #101018;
  --surface: #15151f;
  --surface-alt: #1a1a28;
  --border: rgba(255, 255, 255, .08);
  --text-primary: #eeeef2;
  --text-secondary: #b0b0c0;
  --text-muted: #7a7a90;
  --text-faint: #55556a;
  --blue-light: rgba(0, 87, 255, .15);
  --card-hover-shadow: rgba(0, 0, 0, .3);
  --input-bg: #15151f;
  --icon-filter: brightness(0) saturate(100%) invert(45%) sepia(90%) saturate(3000%) hue-rotate(210deg) brightness(130%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal--d1 { transition-delay: .1s; }
.reveal--d2 { transition-delay: .2s; }
.reveal--d3 { transition-delay: .3s; }
.reveal--d4 { transition-delay: .4s; }
.reveal--d5 { transition-delay: .5s; }
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── BADGE ── */
.badge {
  display: inline-block;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 100px;
}
.badge--light {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .25s var(--ease-out);
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 12px var(--blue-glow);
}
.btn--primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 24px var(--blue-glow);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: #a0a0b0;
  border: 1.5px solid rgba(255, 255, 255, .08);
}
.btn--ghost:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .04);
}
.btn--ghost-light {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, .2);
}
.btn--ghost-light:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .06);
}
.btn--full { width: 100%; }
.btn__arrow {
  transition: transform .25s var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, .85);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--dark-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  border-radius: 8px;
}
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -.3px;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list {
  display: flex;
  gap: 4px;
}
.nav__list a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: #a0a0b0;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav__list a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .06);
}

.header__cta {
  display: inline-flex;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  border-radius: 7px;
  margin-left: 12px;
  transition: background .2s, box-shadow .2s;
}
.header__cta:hover {
  background: var(--blue-hover);
  box-shadow: 0 2px 12px var(--blue-glow);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; }
.nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  padding: 180px 0 120px;
  background: #0a0a0f;
  color: #ffffff;
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}
.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: .6;
}
.hero__inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0, 87, 255, .1);
  border: 1px solid rgba(0, 87, 255, .2);
  border-radius: 100px;
  margin-bottom: 32px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero__accent {
  background: linear-gradient(135deg, var(--blue), #6c9fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: #a0a0b0;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--dark-border);
}
.hero__stat { text-align: center; }
.hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #ffffff;
  line-height: 1.2;
}
.hero__stat-label {
  font-size: 13px;
  color: #6b6b7b;
  margin-top: 4px;
  display: block;
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--dark-border);
}

/* ── SECTION COMMON ── */
.section-header {
  margin-bottom: 56px;
}
.section-header .badge { margin-bottom: 16px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.8px;
  color: var(--text-primary);
}

/* ── AGENT ── */
.agent {
  padding: 120px 0 100px;
}
.agent__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.agent__card {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.agent__card:hover {
  border-color: rgba(0, 87, 255, .15);
  box-shadow: 0 8px 32px var(--card-hover-shadow);
  transform: translateY(-4px);
}
.agent__card-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
  opacity: .6;
}
.agent__card h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.agent__card p, .agent__card li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.agent__card ul { padding-left: 18px; list-style: disc; }
.agent__card li { margin-bottom: 8px; }
.agent__card--accent {
  background: var(--blue);
  border-color: var(--blue);
}
.agent__card--accent:hover {
  border-color: var(--blue-hover);
  box-shadow: 0 8px 32px var(--blue-glow);
}
.agent__card--accent .agent__card-num { color: rgba(255, 255, 255, .5); }
.agent__card--accent h3 { color: rgba(255, 255, 255, .7); }
.agent__card--accent p,
.agent__card--accent li { color: rgba(255, 255, 255, .9); }

/* ── PROBLEMS ── */
.problems {
  padding: 100px 0 120px;
  background: var(--bg-alt);
}
.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problems__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  overflow: hidden;
}
.problems__card:hover {
  border-color: rgba(0, 87, 255, .15);
  box-shadow: 0 8px 32px var(--card-hover-shadow);
  transform: translateY(-4px);
}
.problems__card:hover .problems__card-line {
  transform: scaleX(1);
}
.problems__card-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.problems__icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.problems__icon img { filter: var(--icon-filter); }
.problems__card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -.2px;
}
.problems__card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CONTACT FORM ── */
.contact {
  padding: 120px 0;
}
.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__info .section-title { margin-bottom: 20px; }
.contact__desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--input-bg);
  color: var(--text-primary);
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--text-faint); }
.contact__channel {
  display: flex;
  gap: 12px;
}
.contact__channel select { flex: 0 0 160px; }
.contact__channel input { flex: 1; }

/* ── CONSULTATION ── */
.consultation {
  padding: 0 0 120px;
}
.consultation__card {
  position: relative;
  background: var(--dark);
  border-radius: 20px;
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
}
.consultation__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: .5;
}
.consultation__card .badge--light { margin-bottom: 24px; }
.consultation__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -.5px;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}
.consultation__subtitle {
  font-size: 17px;
  color: #a0a0b0;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
}
.consultation__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── ABOUT ── */
.about {
  padding: 120px 0;
  background: var(--bg-alt);
}
.about__inner {
  display: flex;
  gap: 72px;
  align-items: center;
}
.about__photo {
  flex: 0 0 300px;
  position: relative;
}
.about__img {
  width: 300px;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  position: relative;
  z-index: 1;
}
.about__photo-border {
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 2px solid var(--blue);
  border-radius: 16px;
  opacity: .3;
}
.about__text .badge { margin-bottom: 16px; }
.about__text .section-title { margin-bottom: 24px; }
.about__text p {
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.about__quote {
  font-style: italic;
  font-size: 17px;
  color: var(--text-primary);
  border-left: 3px solid var(--blue);
  padding-left: 20px;
  margin: 28px 0 32px;
  line-height: 1.7;
}

/* ── CONTACTS ── */
.contacts {
  padding: 100px 0;
  text-align: center;
}
.contacts__links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}
.contacts__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  color: var(--text-primary);
}
.contacts__link:hover {
  border-color: rgba(0, 87, 255, .2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  transform: translateY(-2px);
}
.contacts__link svg { color: var(--blue); }

/* ── FOOTER ── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo--footer .logo__mark {
  width: 26px;
  height: 26px;
  font-size: 13px;
}
.logo--footer .logo__text {
  font-size: 16px;
  color: var(--text-primary);
}
.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer__right {
  display: flex;
  gap: 24px;
}
.footer__right a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  color: var(--gray-300);
  margin-left: 4px;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .15);
  color: var(--white);
}
.theme-toggle svg { width: 18px; height: 18px; transition: transform .3s var(--ease-spring); }
.theme-toggle:hover svg { transform: rotate(20deg); }
.theme-toggle__sun,
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
:root:not([data-theme="dark"]) .theme-toggle__sun { display: none; }
:root:not([data-theme="dark"]) .theme-toggle__moon { display: block; }

/* ── DARK THEME HEADER (stays dark in both) ── */
[data-theme="dark"] .header {
  background: rgba(10, 10, 15, .9);
}

/* ── DARK CONSULTATION CARD adjust ── */
[data-theme="dark"] .consultation__card {
  background: var(--surface);
  border: 1px solid var(--border);
}
.footer__right a:hover { color: var(--blue); }

/* ═══════════════════════
   RESPONSIVE
   ═══════════════════════ */
@media (max-width: 960px) {
  .agent__grid { grid-template-columns: 1fr; }
  .problems__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__wrapper { grid-template-columns: 1fr; gap: 48px; }
  .about__inner { flex-direction: column; text-align: center; }
  .about__photo { flex: none; }
  .about__quote { text-align: left; }
  .hero__stats { gap: 24px; }
  .hero__stat-num { font-size: 26px; }
  .consultation__card { padding: 60px 36px; }
}

@media (max-width: 640px) {
  .nav__burger { display: flex; }
  .nav__list {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, .96);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--dark-border);
  }
  .nav__list--open { display: flex; }
  .header__cta { display: none; }
  .header__cta--open { display: inline-flex; }

  .hero { padding: 140px 0 80px; }
  .hero__title { letter-spacing: -.8px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__stats { flex-direction: column; gap: 20px; }
  .hero__stat-divider { width: 40px; height: 1px; }

  .problems__grid { grid-template-columns: 1fr; }
  .contact__channel { flex-direction: column; }
  .contact__channel select { flex: none; }
  .consultation__buttons { flex-direction: column; align-items: center; }
  .contacts__links { flex-direction: column; align-items: center; }

  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer__left { flex-direction: column; gap: 12px; }
}
