/* ─── FONTS ──────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
  --color-bg:       #0A0F1E;
  --color-surface:  #0F1629;
  --color-surface2: #131d35;
  --color-primary:  #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-accent:   #60A5FA;
  --color-text:     #F1F5F9;
  --color-muted:    #94A3B8;
  --color-border:   rgba(96, 165, 250, 0.15);
  --color-success:  #10B981;
  --color-error:    #EF4444;
  --radius-card:    16px;
  --radius-btn:     8px;
  --shadow-card:    0 4px 24px rgba(37, 99, 235, 0.12);
  --shadow-card-hover: 0 8px 40px rgba(37, 99, 235, 0.22);
  --font-main:      'Inter', system-ui, -apple-system, sans-serif;
  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:      1200px;
}

/* ─── RESET & BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}
.text-center { text-align: center; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.section-subtitle {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-top: 0.75rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-muted);
  max-width: 560px;
  margin-top: 1.25rem;
  line-height: 1.7;
}
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-btn);
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-accent);
  border-radius: var(--radius-btn);
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
}
.btn-secondary:hover { background: rgba(37, 99, 235, 0.12); transform: translateY(-2px); }
.btn-large { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

/* ─── NAVIGATION ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links .btn-primary {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ─── CARD ───────────────────────────────────────────────────────────────── */
.card {
  background: rgba(15, 22, 41, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.card-body {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.card-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-agent {
  min-height: 72vh;
  align-items: flex-start;
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 15, 30, 0.82) 0%,
    rgba(10, 15, 30, 0.55) 55%,
    rgba(10, 15, 30, 0.25) 100%
  );
  z-index: 1;
}
.hero-content { max-width: 700px; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--color-accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── VALUE SECTION ──────────────────────────────────────────────────────── */
.value-section { background: var(--color-surface); }

/* ─── CTA BANNER ─────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.cta-banner .section-title { margin-bottom: 1rem; }
.cta-banner p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ─── STEPS FLOW ─────────────────────────────────────────────────────────── */
.steps-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 1.5rem 0 2rem;
  overflow-x: auto;
}
.step-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 27px;
  left: 65%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), rgba(96, 165, 250, 0.2));
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1rem;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.4);
}
.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.step-desc {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ─── TERMINAL CARD ──────────────────────────────────────────────────────── */
.terminal-card {
  background: #0D1117;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
  margin-top: 2.5rem;
}
.terminal-card .term-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(96, 165, 250, 0.15);
}
.term-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.term-dot.red   { background: #FF5F57; }
.term-dot.yellow { background: #FEBC2E; }
.term-dot.green { background: #28C840; }
.term-filename {
  color: var(--color-muted);
  font-size: 0.8rem;
  margin-left: auto;
}
.term-line { color: #E2E8F0; }
.term-key { color: #60A5FA; }
.term-value { color: #34D399; }
.term-comment { color: #475569; }
.term-status-ok { color: #34D399; font-weight: 600; }
.term-phase { color: #F59E0B; font-weight: 600; }

/* ─── PROBLEM / SOLUTION ─────────────────────────────────────────────────── */
.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.problem-list li::before {
  content: '✗';
  color: var(--color-error);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.solution-list li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ─── FORM ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.form-label .required { color: var(--color-primary); margin-left: 0.2rem; }
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder,
.form-textarea::placeholder { color: #475569; }
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-input.error { border-color: var(--color-error); }
.form-textarea { resize: vertical; min-height: 120px; }
.error-message {
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-legal {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 1.25rem;
  line-height: 1.5;
}

/* ─── DOWNLOAD SECTION ───────────────────────────────────────────────────── */
.download-section {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--color-border);
  max-width: 720px;
  margin: 0 auto;
}
.download-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.download-section .subtitle {
  color: var(--color-muted);
  margin-bottom: 2rem;
}
.post-download-message {
  margin-top: 2rem;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}
.post-download-message h3 {
  color: var(--color-success);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.post-download-message h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.post-download-message ol {
  list-style: decimal;
  padding-left: 1.25rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.9;
}
.post-download-message code {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--color-accent);
}
.post-download-message a { color: var(--color-accent); text-decoration: underline; }

/* ─── CONTACT SECTION ────────────────────────────────────────────────────── */
.contact-section { background: var(--color-surface); }
.contact-pitch h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.contact-pitch p { color: var(--color-muted); font-size: 0.95rem; line-height: 1.7; }
.contact-perks {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-perks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-size: 0.95rem;
}
.contact-perks li::before {
  content: '→';
  color: var(--color-accent);
  font-weight: 700;
}
.contact-form-wrap {
  background: rgba(15, 22, 41, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
}

/* ─── NOTIFICATION ───────────────────────────────────────────────────────── */
.notification {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 5000;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: rgba(15, 22, 41, 0.97);
  border: 1px solid;
  backdrop-filter: blur(12px);
  max-width: 400px;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notification.show { transform: translateY(0); opacity: 1; }
.notification.success { border-color: var(--color-success); color: var(--color-success); }
.notification.error   { border-color: var(--color-error);   color: var(--color-error); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  background: rgba(0, 0, 0, 0.3);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-brand .nav-logo { display: block; margin-bottom: 0.5rem; }
.footer-tagline { color: var(--color-muted); font-size: 0.875rem; max-width: 280px; }
.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--color-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-text); }
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-linkedin:hover { color: #60A5FA !important; }
.footer-copy {
  width: 100%;
  color: #334155;
  font-size: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(96, 165, 250, 0.08);
}

/* ─── SCROLL DOT NAV ─────────────────────────────────────────────────────── */
.scroll-dot-nav {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}
.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.2);
  border: 1.5px solid rgba(96, 165, 250, 0.35);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  padding: 0;
  flex-shrink: 0;
}
.scroll-dot:hover,
.scroll-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.55);
}
.scroll-dot .dot-tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font-main);
  color: var(--color-text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  backdrop-filter: blur(8px);
}
.scroll-dot:hover .dot-tooltip { opacity: 1; }
@media (max-width: 900px) { .scroll-dot-nav { display: none; } }

/* ─── SCROLL ANIMATIONS ──────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── SECTION ALTERNATING BG ─────────────────────────────────────────────── */
.bg-surface { background: var(--color-surface); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .nav-hamburger { display: block; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .steps-flow { flex-direction: column; align-items: center; gap: 1.5rem; }
  .step-item { min-width: auto; width: 100%; max-width: 300px; }
  .step-item::after { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .download-section { padding: 1.5rem; }
  .contact-form-wrap { padding: 1.5rem; }
  .card { padding: 1.5rem; }
}
