/* ===========================================================
   TAPIGO — Premium SaaS Design Tokens
=========================================================== */
:root {
  --blue-900: #061129;
  --blue-800: #0b224d;
  --blue-700: #2563eb;
  --blue-600: #3b82f6;
  --blue-100: #eaf1ff;
  --blue-50:  #f8fafc;
  
  --brand-primary: #3b82f6;
  --brand-secondary: #8b5cf6;
  --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  
  --ink:      #0f172a;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-200: #e2e8f0;
  --line:     rgba(226, 232, 240, 0.8);
  --white:    #ffffff;

  --g-red:    #ea4335;
  --g-yellow: #fbbc05;
  --g-green:  #34a853;
  --g-blue:   #4285f4;

  --font-head: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-card: 0 20px 40px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 30px 60px rgba(59, 130, 246, 0.12);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--blue-50);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59,130,246,0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139,92,246,0.08) 0px, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.15; font-weight: 800; }
p { margin: 0; color: var(--gray-700); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }

/* ===========================================================
   Buttons
=========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}
.btn--primary:hover { 
  box-shadow: 0 20px 35px -5px rgba(59, 130, 246, 0.5);
  filter: brightness(1.1);
}

.btn--ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--brand-primary);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand-primary); background: var(--white); box-shadow: var(--shadow-md); }

.btn--outline { width: 100%; background: var(--white); color: var(--brand-primary); border-color: var(--brand-primary); margin-top: 26px; }
.btn--outline:hover { background: var(--brand-primary); color: var(--white); }

.btn--white { background: var(--white); color: var(--blue-900); }
.btn--white:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.15); transform: translateY(-3px); }
.btn--white-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--white-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

/* ===========================================================
   Navigation (Glassmorphism)
=========================================================== */
.nav {
  position: sticky;
  top: 16px;
  margin: 0 16px;
  border-radius: 999px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}
.nav.is-scrolled { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); background: rgba(255, 255, 255, 0.85); }

.nav__inner { max-width: var(--max); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 32px; }
.nav__logo img { height: 32px; width: auto; mix-blend-mode: multiply; }
.nav__links { display: flex; gap: 32px; margin-right: auto; }
.nav__links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: all 0.2s ease;
  position: relative;
}
.nav__links a:hover { color: var(--brand-primary); }
.nav__links a::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
  background: var(--brand-gradient); transition: width 0.3s ease; border-radius: 2px;
}
.nav__links a:hover::after { width: 100%; }

.nav__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
}
.nav__burger span { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: all 0.3s ease; }

.nav__mobile {
  display: none; flex-direction: column; gap: 4px; padding: 20px; border-radius: 24px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); position: absolute; top: 110%; left: 0; right: 0;
  box-shadow: var(--shadow-card);
}
.nav__mobile.is-open { display: flex; animation: fadeIn 0.3s ease; }
.nav__mobile a { padding: 14px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }

/* ===========================================================
   Hero
=========================================================== */
.hero { padding: 100px 24px 80px; position: relative; }
.hero::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%); z-index: -1;
}
.hero__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }

.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(59,130,246,0.1);
  color: var(--brand-primary); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--ink) 0%, #334155 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.1; margin-bottom: 24px;
}

.hero__sub { font-size: 1.15rem; max-width: 520px; color: var(--gray-500); margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__note { margin-top: 24px; font-size: 0.9rem; color: var(--gray-500); font-weight: 500; }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__cardwrap {
  width: min(380px, 100%); border-radius: 32px; background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
  padding: 16px; box-shadow: var(--shadow-card-hover);
  animation: floatCard 6s ease-in-out infinite;
}
.hero__card { border-radius: 20px; box-shadow: var(--shadow-md); }

@keyframes floatCard { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-15px) rotate(1deg); } }

.badge { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-md); font-size: 0.85rem; font-weight: 700; color: var(--ink); border: 1px solid var(--line); }
.badge--float { position: absolute; backdrop-filter: blur(10px); background: rgba(255,255,255,0.9); }
.badge--1 { top: 10%; right: -10%; animation: floatCard 5s infinite 1s; }
.badge--2 { bottom: 15%; left: -10%; animation: floatCard 7s infinite 0.5s; }
.badge--3 { bottom: -5%; right: 5%; animation: floatCard 6s infinite 1.5s; }

/* ===========================================================
   Trust strip
=========================================================== */
.strip { padding: 40px 24px 80px; }
.strip__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip__item {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: all 0.3s ease; animation: fadeIn 0.6s ease-out forwards;
}
.strip__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-primary); }
.strip__icon { font-size: 1.8rem; background: var(--blue-50); padding: 12px; border-radius: 14px; }
.strip__item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.strip__item p { font-size: 0.9rem; color: var(--gray-500); }

/* ===========================================================
   Section shell
=========================================================== */
.section { padding: 100px 24px; max-width: var(--max); margin: 0 auto; }
.section--tint { max-width: none; background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%); }
.section--tint > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section__title { font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; margin: 0 auto; max-width: 700px; }
.section__sub { color: var(--gray-500); margin-top: 16px; font-size: 1.1rem; text-align: center; }

/* ===========================================================
   Pricing (SaaS Cards)
=========================================================== */
.pricing { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.price-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 32px;
  padding: 40px; box-shadow: var(--shadow-card); transition: all 0.4s ease;
  animation: fadeIn 0.6s ease-out forwards;
}
.price-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-card-hover); }
.price-card--featured {
  background: var(--ink); border: none; color: var(--white); transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
}
.price-card--featured:hover { transform: scale(1.03) translateY(-10px); }
.price-card--featured h3, .price-card--featured .price-card__price { color: var(--white); }
.price-card--featured .price-card__tag { color: rgba(255,255,255,0.7); }
.price-card--featured .price-card__list li { color: rgba(255,255,255,0.9); }
.price-card--featured .price-card__list li::before { color: var(--brand-primary); }

.price-card h3 { font-size: 1.4rem; }
.price-card__price { font-size: 3rem; font-weight: 800; margin-top: 16px; font-family: var(--font-head); }
.price-card__tag { font-size: 0.95rem; font-weight: 600; color: var(--gray-500); margin-top: 8px; }
.price-card__list { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.price-card__list li { font-size: 1rem; color: var(--gray-700); padding-left: 32px; position: relative; font-weight: 500; }
.price-card__list li::before {
  content: "✓"; position: absolute; left: 0; top: -2px; width: 20px; height: 20px;
  background: var(--blue-100); color: var(--brand-primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800;
}
.badge--best {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--brand-gradient); color: var(--white); padding: 8px 24px;
  font-size: 0.85rem; font-weight: 800; border-radius: 999px; box-shadow: 0 10px 20px rgba(59,130,246,0.3); letter-spacing: 0.05em;
}

/* ===========================================================
   Benefits & Usecases Grid
=========================================================== */
.benefits, .usecases { margin-top: 60px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.benefit-card, .usecase-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm); transition: all 0.3s ease; position: relative; overflow: hidden;
  animation: fadeIn 0.6s ease-out forwards;
}
.benefit-card::before, .usecase-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--brand-gradient); opacity: 0; transition: opacity 0.3s ease;
}
.benefit-card:hover, .usecase-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.benefit-card:hover::before, .usecase-card:hover::before { opacity: 1; }
.benefit-card h3, .usecase-card h3 { font-size: 1.15rem; margin-bottom: 12px; }

/* ===========================================================
   Audience
=========================================================== */
.audience { margin-top: 50px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.audience__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: all 0.3s ease; cursor: pointer;
  animation: fadeIn 0.6s ease-out forwards;
}
.audience__item:hover { border-color: var(--brand-primary); transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-md); }
.audience__item span:first-child { font-size: 2rem; }
.audience__item span:last-child { font-weight: 700; color: var(--ink); font-size: 1rem; }

/* ===========================================================
   Order / CTA Banner
=========================================================== */
.order, .final-cta {
  background: var(--ink); position: relative; overflow: hidden; padding: 100px 24px; text-align: center;
}
.order::before, .final-cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(59,130,246,0.2) 0%, transparent 70%); pointer-events: none;
}
.order h2, .final-cta h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; max-width: 700px; margin: 0 auto; }
.order p, .final-cta p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-top: 20px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===========================================================
   Footer
=========================================================== */
.footer { background: #020617; padding: 80px 24px 30px; color: rgba(255,255,255,0.6); }
.footer__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.footer__brand img { height: 40px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 20px; }
.footer__links { display: flex; gap: 32px; align-items: center; }
.footer__links a { color: rgba(255,255,255,0.7); font-weight: 500; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }

/* ===========================================================
   How it works (Steps)
=========================================================== */
.steps { margin-top: 52px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.step { flex: 1; text-align: center; padding: 0 12px; transition: all 0.3s ease; animation: fadeIn 0.6s ease-out forwards; }
.step:hover { transform: translateY(-5px); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-gradient);
  color: var(--white); font-weight: 800; font-size: 1.1rem; margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(59,130,246,0.3);
}
.step h3 { font-size: 1.2rem; margin-bottom: 12px; }
.step p { font-size: 0.95rem; max-width: 260px; margin: 0 auto; color: var(--gray-700); }
.step__line { flex: 0 0 60px; height: 2px; background: var(--line); margin-top: 24px; border-radius: 2px; }

/* ===========================================================
   FAQ
=========================================================== */
.faq { margin-top: 44px; max-width: 760px; margin-left: auto; margin-right: auto; }
.faq__item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  margin-bottom: 16px; padding: 20px 24px; box-shadow: var(--shadow-sm); transition: all 0.3s ease;
}
.faq__item:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-md); }
.faq__item summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--brand-primary); font-weight: 400; margin-left: 16px; flex-shrink: 0;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin-top: 16px; font-size: 0.95rem; color: var(--gray-700); line-height: 1.6; }

/* ===========================================================
   Responsive
=========================================================== */
@media (max-width: 980px) {
  .nav__links, .nav .btn { display: none; }
  .nav__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__actions { justify-content: center; }
  .pricing { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-10px); }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand img { margin: 0 auto 20px; }
  .footer__links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .strip__inner { grid-template-columns: 1fr; }
  .nav { margin: 8px; }
  
  /* Mobile padding & text fixes */
  .hero { padding: 40px 16px 50px; }
  .hero h1 { font-size: 2.2rem; }
  .eyebrow { font-size: 0.72rem; padding: 6px 12px; margin-bottom: 16px; }
  .hero__sub { font-size: 1rem; margin-bottom: 24px; }
  .hero__actions { flex-direction: column; width: 100%; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  
  .section { padding: 60px 16px; }
  .section__title { font-size: 1.8rem; }
  
  /* Steps */
  .steps { flex-direction: column; align-items: center; gap: 32px; }
  .step__line { display: none; }
  
  /* Pricing */
  .price-card { padding: 24px; }
  .price-card__price { font-size: 2.5rem; }
}
