/* ============================================
   WEB SHOP SERVICE — Design System & Styles
   ============================================ */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #818CF8;
  --secondary: #64748B;
  --secondary-dark: #475569;
  --secondary-light: #94A3B8;
  --accent: #06B6D4;
  --accent-dark: #0891B2;
  --accent-light: #22D3EE;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-dark: #0F172A;
  --text-dark: #1E293B;
  --text-body: #475569;
  --text-light: #94A3B8;
  --line-green: #06C755;
  --line-green-dark: #05A848;
  --success: #10B981;
  --gold: #F59E0B;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --shadow-glow: 0 0 30px rgba(79,70,229,0.3);
  --shadow-line-glow: 0 0 40px rgba(6,199,85,0.5), 0 0 80px rgba(6,199,85,0.3);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: 40px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Layout Utilities ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.text-center { text-align: center; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.08);
  padding: var(--space-sm) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bg-white);
  letter-spacing: -0.5px;
  transition: color var(--transition-base);
}

.nav-logo span {
  color: var(--accent);
}

.navbar.scrolled .nav-logo {
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--bg-white);
}

.navbar.scrolled .nav-links a {
  color: var(--text-body);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--primary);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--bg-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar.scrolled .nav-hamburger span {
  background: var(--text-dark);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 35%, #312E81 65%, #1E293B 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(79,70,229,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.25) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(129,140,248,0.15) 0%, transparent 40%);
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 400px; height: 400px;
  background: var(--accent);
  top: -100px; right: -100px;
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  width: 250px; height: 250px;
  background: var(--primary-light);
  bottom: -50px; left: 10%;
  animation-delay: 2s;
}

.hero-shape:nth-child(3) {
  width: 180px; height: 180px;
  background: var(--accent-light);
  top: 30%; left: 60%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-lg);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--bg-white);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  box-shadow: 0 4px 16px rgba(79,70,229,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--bg-white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--bg-white);
  box-shadow: 0 4px 16px rgba(6,182,212,0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,182,212,0.5);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-line-big {
  background: var(--line-green);
  color: var(--bg-white);
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 0 30px rgba(6,199,85,0.4), 0 8px 24px rgba(6,199,85,0.3);
  border-radius: var(--radius-md);
  gap: var(--space-md);
}

.btn-line-big:hover {
  background: var(--line-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(6,199,85,0.5), 0 12px 32px rgba(6,199,85,0.4);
}

.btn-line-big svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* ============================================
   WHY DIFFERENT SECTION
   ============================================ */
.why-different {
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.why-different::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.feature-card {
  background: var(--bg-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.1));
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio {
  background: var(--bg-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.portfolio-grid-5 {
  grid-template-columns: repeat(3, 1fr);
}



/* Center the bottom row of 2 cards when there are 5 items */
@media (min-width: 769px) {
  .portfolio-grid-5 {
    justify-items: center;
  }
  .portfolio-grid-5 .portfolio-card:nth-child(4) {
    grid-column: 1 / 2;
    justify-self: end;
    max-width: calc(100% - var(--space-xl));
  }
  .portfolio-grid-5 .portfolio-card:nth-child(5) {
    grid-column: 2 / 3;
    justify-self: start;
    max-width: calc(100% - var(--space-xl));
  }
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.portfolio-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.05);
}

.portfolio-card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(8px);
  color: var(--bg-white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.portfolio-card-body {
  padding: var(--space-lg);
}

.portfolio-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.portfolio-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  align-items: start;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
  z-index: 2;
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-card.popular * {
  color: rgba(255,255,255,0.85);
}

.pricing-card.popular h3,
.pricing-card.popular .pricing-amount {
  color: var(--bg-white);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #D97706);
  color: var(--bg-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.pricing-card .pricing-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.pricing-amount .currency {
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: super;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--space-xl);
}

.pricing-features {
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--success);
}

.pricing-card.popular .pricing-features li svg {
  color: var(--accent-light);
}

.pricing-card .btn {
  width: 100%;
}

.pricing-card.popular .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 4px 16px rgba(6,182,212,0.4);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(6,182,212,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(79,70,229,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta .section-title {
  color: var(--bg-white);
}

.cta .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.cta .section-tag {
  color: var(--accent-light);
}

.cta .section-tag::before {
  background: var(--accent-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0B1120;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bg-white);
}

.footer-logo span {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--bg-white);
}

.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
}

/* ============================================
   LINE FLOATING BUTTON
   ============================================ */
.line-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--line-green);
  color: var(--bg-white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-line-glow);
  transition: all var(--transition-base);
  animation: line-glow 2.5s ease-in-out infinite;
  text-decoration: none;
}

.line-float-btn:hover {
  background: var(--line-green-dark);
  transform: scale(1.08);
  box-shadow: 0 0 50px rgba(6,199,85,0.6), 0 0 100px rgba(6,199,85,0.35);
}

.line-float-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

@keyframes line-glow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(6,199,85,0.4), 0 0 60px rgba(6,199,85,0.2);
  }
  50% {
    box-shadow: 0 0 50px rgba(6,199,85,0.6), 0 0 100px rgba(6,199,85,0.35);
  }
}

/* ============================================
   NAV ACTIVE LINK
   ============================================ */
.nav-links a.active {
  color: var(--primary) !important;
  font-weight: 700;
}

.nav-links a.active::after {
  width: 100%;
}

/* ============================================
   PAGE HEADER (Sub-pages)
   ============================================ */
.page-header {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 40%, #312E81 100%);
  overflow: hidden;
  text-align: center;
}

.page-header-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-header-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--bg-white);
  margin-bottom: var(--space-md);
}

.page-header-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

/* ============================================
   ABOUT STORY SECTION
   ============================================ */
.about-story {
  background: var(--bg-white);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.story-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: var(--space-lg);
}

.story-text em {
  color: var(--primary);
  font-style: italic;
  font-weight: 600;
}

.story-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(0,0,0,0.08);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-number small {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Code visual card */
.story-visual-card {
  position: relative;
}

.visual-code-block {
  background: #1E293B;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.code-header {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #0F172A;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-content {
  padding: 16px 20px;
  margin: 0;
  overflow-x: auto;
}

.code-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.7;
  white-space: pre;
}

.visual-speed-badge {
  position: absolute;
  bottom: -16px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--success), #059669);
  color: var(--bg-white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(16,185,129,0.4);
}

/* ============================================
   WHY HTML SECTION
   ============================================ */
.why-html {
  background: var(--bg-light);
}

.html-advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.advantage-card {
  background: var(--bg-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-align: left;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.1));
}

.advantage-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.advantage-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.advantage-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* Speed comparison bars */
.advantage-compare {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.compare-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.compare-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  width: 80px;
  flex-shrink: 0;
}

.compare-fill {
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bg-white);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.compare-bar.fast .compare-fill {
  background: linear-gradient(90deg, var(--success), #059669);
}

.compare-bar.slow .compare-fill {
  background: linear-gradient(90deg, #F59E0B, #D97706);
}

/* Shield stats */
.advantage-shield-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.shield-stat {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
}

/* SEO tags */
.advantage-seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.seo-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.08));
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(79,70,229,0.12);
}

/* ============================================
   CTA MINI SECTION
   ============================================ */
.cta-mini {
  background: var(--bg-white);
}

.cta-mini-card {
  background: linear-gradient(135deg, #0F172A, #1E1B4B, #312E81);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.cta-mini-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(6,182,212,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(79,70,229,0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features-grid,
  .portfolio-grid,
  .portfolio-grid-5,
  .pricing-grid,
  .html-advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid-5 .portfolio-card:nth-child(4),
  .portfolio-grid-5 .portfolio-card:nth-child(5) {
    grid-column: auto;
    justify-self: auto;
    max-width: 100%;
  }
  .pricing-card.popular {
    transform: scale(1);
  }
  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15,23,42,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
    transition: right var(--transition-base);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: rgba(255,255,255,0.8) !important;
    font-size: 1.1rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .features-grid,
  .portfolio-grid,
  .portfolio-grid-5,
  .pricing-grid,
  .html-advantage-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 120px 0 60px;
  }

  .story-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-mini-card {
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .line-float-btn {
    bottom: 20px;
    right: 20px;
    padding: 14px 22px;
    font-size: 0.9rem;
  }

  .line-float-btn svg {
    width: 24px;
    height: 24px;
  }

  .section {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section-title {
    font-size: 1.6rem;
  }

  .pricing-amount {
    font-size: 2rem;
  }

  .line-float-btn span.line-btn-text {
    display: none;
  }

  .line-float-btn {
    padding: 16px;
    border-radius: 50%;
  }
}
