/* ============================================
   Rutin AI Landing Page — Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0f1b2d;
  --navy-light: #162236;
  --blue: #2e7abf;
  --blue-light: #4a9ec9;
  --blue-pale: #e8f2fc;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.1);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 18px;
  color: var(--gray-500);
  margin-top: 12px;
  line-height: 1.6;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--gray-900);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--gray-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.btn-ghost:hover {
  background: var(--gray-50);
  color: var(--gray-900);
  border-color: var(--gray-300);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--gray-100);
  color: var(--navy);
}

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-pale) 40%, var(--white) 100%);
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 19px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* --- Steps --- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.step {
  flex: 1;
  max-width: 320px;
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.step-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 14px;
  margin-bottom: 20px;
}

.step-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.step h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 60px;
  color: var(--gray-300);
  flex-shrink: 0;
}

/* --- Dark section --- */
.section-dark {
  background: var(--navy);
  color: var(--white);
}

.highlight-block {
  display: flex;
  align-items: center;
  gap: 80px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(.4,0,.2,1);
}

.highlight-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.highlight-text {
  flex: 1;
}

.highlight-text h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

.highlight-text p {
  font-size: 17px;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 420px;
}

.highlight-visual {
  flex: 1;
  max-width: 440px;
}

.schedule-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 8px;
}

.schedule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: background var(--transition);
}

.schedule-row:hover {
  background: rgba(255,255,255,.04);
}

.schedule-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-600);
  flex-shrink: 0;
}

.schedule-dot.active {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52,211,153,.4);
}

.schedule-freq {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  white-space: nowrap;
}

/* --- Use cases --- */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.use-case {
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.use-case.visible {
  opacity: 1;
  transform: translateY(0);
}

.use-case:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.use-case-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 12px;
  margin-bottom: 16px;
}

.use-case h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.use-case p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

.use-cases-more {
  text-align: center;
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 32px;
}

/* --- Integrations --- */
.section-light {
  background: var(--gray-50);
}

.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(16px);
}

.integration-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.integration-item:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.integrations-more {
  text-align: center;
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 32px;
}

/* --- CTA --- */
.section-cta {
  padding: 80px 0 100px;
}

.cta-block {
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  border-radius: 24px;
  padding: 80px 40px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(.4,0,.2,1);
}

.cta-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-icon {
  margin: 0 auto 24px;
  border-radius: 16px;
}

.cta-block h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-block p {
  font-size: 17px;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.beta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}


/* --- Footer --- */
.footer {
  border-top: 1px solid var(--gray-200);
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-400);
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--gray-500);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gray-800);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

.footer-bottom span {
  font-size: 13px;
  color: var(--gray-400);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .hero h1 {
    font-size: 44px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .highlight-block {
    flex-direction: column;
    gap: 48px;
  }

  .highlight-visual {
    max-width: 100%;
    width: 100%;
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 99;
  }

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

  .nav-links a {
    font-size: 18px;
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 101;
  }

  .hero {
    padding: 130px 0 72px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    margin-bottom: 48px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .section {
    padding: 72px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .highlight-text h2 {
    font-size: 28px;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .cta-block {
    padding: 56px 24px;
  }

  .cta-block h2 {
    font-size: 28px;
  }

  .integrations-grid {
    gap: 10px;
  }

  .integration-item {
    padding: 12px 16px;
    font-size: 13px;
  }

  .integration-item svg {
    width: 24px;
    height: 24px;
  }
}

/* --- Animations --- */
@media (prefers-reduced-motion: reduce) {
  .step,
  .use-case,
  .integration-item,
  .highlight-block,
  .cta-block {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
