/* =========================================================
   Rutline Landing — brand: primary #1E479F · accent #F0A019
   Vanilla CSS, modern animations, mobile-first responsive
   ========================================================= */

:root {
  --primary: #1E479F;
  --primary-deep: #163774;
  --primary-bright: #2F6BFF;
  --primary-soft: #E8EFF8;
  --accent: #F0A019;
  --accent-deep: #D9850A;
  --accent-soft: rgba(240, 160, 25, 0.12);
  --ink-900: #11161F;
  --ink-700: #1E2A3A;
  --ink-500: #3A4859;
  --ink-300: #6B7689;
  --ink-100: #A8B0BD;
  --bg: #ffffff;
  --bg-alt: #F8FAFC;
  --line: #E5E9F0;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(17, 22, 31, 0.06);
  --shadow: 0 8px 24px rgba(17, 22, 31, 0.10);
  --shadow-lg: 0 24px 60px rgba(17, 22, 31, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--ink-900);
}
.brand-slogan {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-300);
  letter-spacing: 0.2px;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-500);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--primary); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.1px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(30, 71, 159, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 71, 159, 0.42);
  background: var(--primary-deep);
}
.btn-accent {
  background: var(--accent);
  color: var(--ink-900);
  box-shadow: 0 6px 20px rgba(240, 160, 25, 0.4);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(240, 160, 25, 0.5);
}
.btn-ghost {
  background: var(--bg);
  color: var(--ink-900);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 110px;
  background: linear-gradient(180deg, #F4F8FF 0%, #ffffff 80%);
  overflow: hidden;
}
.bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.orb-1 {
  width: 380px; height: 380px;
  top: -80px; left: -100px;
  background: var(--primary-bright);
  animation: floatY 9s ease-in-out infinite;
}
.orb-2 {
  width: 280px; height: 280px;
  top: 240px; right: -60px;
  background: var(--accent);
  opacity: 0.35;
  animation: floatY 11s ease-in-out infinite reverse;
}
.orb-3 {
  width: 220px; height: 220px;
  bottom: -100px; left: 40%;
  background: var(--primary);
  opacity: 0.18;
  animation: floatY 13s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(40px); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.tag {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 900;
  color: var(--ink-900);
  margin-bottom: 22px;
}
.grad-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-500);
  margin-bottom: 30px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-cta.center { justify-content: center; }
.trust {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-300);
  font-size: 14px;
  flex-wrap: wrap;
}
.trust-item strong {
  color: var(--ink-900);
  font-weight: 700;
}
.dot { color: var(--ink-100); }

/* ============ HERO PHONE VISUAL ============ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}
.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: var(--ink-900);
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(255, 255, 255, 0.06) inset;
  animation: phoneFloat 5s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(-1.5deg); }
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: var(--ink-900);
  border-radius: 12px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  background: var(--bg-alt);
}
.float-card {
  position: absolute;
  background: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: cardFloat 4s ease-in-out infinite;
}
.float-1 {
  top: 70px;
  left: -20px;
  animation-delay: 0.5s;
}
.float-2 {
  bottom: 90px;
  right: -10px;
  animation-delay: 1.5s;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.float-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-900);
}
.float-sub {
  font-size: 12px;
  color: var(--ink-300);
}

/* ============ SECTIONS ============ */
.section {
  padding: 96px 0;
}
.section-dark {
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-700) 100%);
  color: #fff;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.kicker-dark {
  background: rgba(240, 160, 25, 0.18);
  color: var(--accent);
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.8px;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 14px;
}
.section-head h2.white { color: #fff; }
.section-head p {
  font-size: 17px;
  color: var(--ink-500);
}
.section-head p.white-muted { color: rgba(255, 255, 255, 0.7); }
.accent-text { color: var(--accent); }

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.feature p {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.55;
}

/* ============ SCREENS — STAGE (tek phone + fade transition) ============ */
.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px 0;
}
.stage-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.stage-phone {
  position: relative;
  width: 300px;
  height: 620px;
  background: var(--ink-900);
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1.5px rgba(255, 255, 255, 0.05) inset;
}
.stage-phone .phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: var(--ink-900);
  border-radius: 12px;
  z-index: 3;
}
.stage-screen-area {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-alt);
}
.stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stage-img.active {
  opacity: 1;
  transform: scale(1);
}
.stage-label {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  min-height: 24px;
  transition: opacity 0.3s;
}
.stage-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 320px;
}
.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.stage-dot.active {
  width: 28px;
  background: var(--accent);
  border-radius: 4px;
}
.stage-arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stage-arrow:hover {
  background: var(--accent);
  color: var(--ink-900);
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(240, 160, 25, 0.4);
  border-color: var(--accent);
}
.stage-arrow:active {
  transform: scale(0.96);
}

/* ============ PRICING ============ */
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 26px;
  border: 2px solid var(--accent);
  padding: 38px 32px 32px;
  position: relative;
  box-shadow: 0 30px 80px rgba(240, 160, 25, 0.18);
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 90px rgba(240, 160, 25, 0.28);
}
.pricing-banner {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--ink-900);
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.pricing-head {
  text-align: center;
  padding-bottom: 26px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 24px;
}
.pricing-head h3 {
  font-size: 18px;
  color: var(--ink-500);
  font-weight: 500;
  margin-bottom: 6px;
}
.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.price-amount {
  font-size: 64px;
  font-weight: 900;
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -2px;
}
.price-unit {
  font-size: 17px;
  color: var(--ink-300);
  font-weight: 500;
}
.price-note {
  font-size: 14px;
  color: var(--ink-300);
}
.pricing-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.pricing-list li {
  padding: 10px 0;
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 500;
}

/* ============ CTA SECTION ============ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(240, 160, 25, 0.18), transparent 50%),
              radial-gradient(circle at 80% 60%, rgba(47, 107, 255, 0.3), transparent 50%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.6px;
}
.cta-inner p {
  font-size: 17px;
  margin-bottom: 30px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.6);
  padding: 44px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 30px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-name { color: #fff; }
.footer-tag {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  text-align: right;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-seo {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-seo p {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.footer-seo strong {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-cta { justify-content: center; }
  .trust { justify-content: center; }
  .lead { max-width: 100%; }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand { justify-content: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 50px 0 80px; }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .phone-frame {
    width: 240px;
    height: 500px;
  }
  .float-card {
    padding: 10px 14px;
  }
  .float-title { font-size: 13px; }
  .float-sub { font-size: 11px; }
  .float-1 { top: 50px; left: -10px; }
  .float-2 { bottom: 70px; right: 0; }
  .price-amount { font-size: 52px; }
  .stage { gap: 12px; padding: 12px 0; }
  .stage-phone { width: 240px; height: 500px; border-radius: 36px; padding: 10px; }
  .stage-phone .phone-notch { width: 64px; height: 18px; top: 14px; }
  .stage-screen-area { border-radius: 26px; }
  .stage-arrow { width: 42px; height: 42px; }
  .stage-arrow svg { width: 18px; height: 18px; }
  .stage-label { font-size: 16px; }
}
