/* ==========================================================================
   Ultimate Thumbnail Maker - Ark7 Luxury Green Wave Design System
   Inspired by Ark7 (https://ark7.com / Landingfolio mobile-app inspiration)
   Mobile-first, accessible (WCAG AA/AAA), ultra-fast, zero-framework CSS
   ========================================================================== */

/* --- Custom Creator Fonts --- */
@font-face {
  font-family: 'Bebas Neue';
  src: url('/assets/fonts/BebasNeue Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Bold Font';
  src: url('/assets/fonts/theboldfont.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Ark7 Design Tokens --- */
:root {
  /* Ark7 Signature Emerald Gradient (WCAG AA/AAA Compliant) */
  --ark-green-light: #05C557;
  --ark-green: #047857;
  --ark-green-dark: #065F46;
  --ark-green-bg: linear-gradient(145deg, #059669 0%, #047857 60%, #064E3B 100%);
  --ark-green-subtle: #D1FAE5;
  --ark-green-tint: rgba(4, 120, 87, 0.08);
  --ark-lime: #C7F9CC;
  
  /* Neutral Palette */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.96);
  
  /* Text */
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #475569;
  --text-light: #FFFFFF;
  --text-light-subtle: rgba(255, 255, 255, 0.92);
  --text-light-muted: rgba(255, 255, 255, 0.78);
  
  /* Borders */
  --border-light: #E2E8F0;
  --border-strong: #94A3B8;
  --border-focus: #05C557;
  
  /* Accents */
  --accent-primary: #047857;
  --accent-primary-hover: #065F46;
  --accent-red: #EF4444;
  --accent-amber: #D97706;
  --accent-indigo: #4F46E5;
  --accent-cyan: #0284C7;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-headline: 'Bebas Neue', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Dimensions & Radii */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-phone: 42px;
  --radius-full: 9999px;
  
  /* Elevation Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 10px 20px -5px rgba(15, 23, 42, 0.04);
  --shadow-phone: 0 35px 80px -15px rgba(0, 45, 18, 0.32), 0 15px 35px -5px rgba(15, 23, 42, 0.12);
  --shadow-float: 0 15px 35px -5px rgba(0, 0, 0, 0.14), 0 5px 15px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 25px 50px -12px rgba(6, 167, 74, 0.2);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--accent-primary-hover);
  text-decoration: underline;
}

/* --- Keyboard Accessibility & Focus --- */
:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

/* --- Interactive Elements & Pointer Cursor --- */
button,
summary,
.btn,
.nav-cta-btn,
.mobile-toggle,
.studio-tab-btn,
.studio-pill-btn,
.ark-mode-pill,
.faq-question,
.template-card,
.ark-text-link,
.bento-link {
  cursor: pointer;
}

/* --- Accessibility: Reduced Motion (UI/UX Pro Max Guideline) --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .card-3d,
  .showcase-frame,
  .ark-showcase-phone,
  .card,
  .ark-floating-pin,
  .ark-tool-badge {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--text-dark);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 1rem;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Typography (UI/UX Pro Max Balanced Line Scale) --- */
h1, h2, h3, h4, h5, h6,
.section-title,
.cta-banner-title,
.ark-story-title,
.bento-title {
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.6;
  font-weight: 400;
}

/* ==========================================================================
   Header & Navigation (Ark7 Integrated Glassmorphic App Bar)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(4, 85, 48, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.18);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast), padding var(--transition-fast);
}

body:not(:has(.ark-hero)) .site-header,
.site-header--subpage {
  position: sticky;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

body:not(:has(.ark-hero)) .brand-title,
.site-header--subpage .brand-title {
  color: var(--text-dark);
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

body:not(:has(.ark-hero)) .brand-subtitle,
.site-header--subpage .brand-subtitle {
  color: var(--accent-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 1200px) {
  .nav-menu {
    gap: 0.75rem;
  }
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
}

body:not(:has(.ark-hero)) .nav-link,
.site-header--subpage .nav-link {
  color: #334155;
}

body:not(:has(.ark-hero)) .nav-link:hover,
body:not(:has(.ark-hero)) .nav-link.active,
.site-header--subpage .nav-link:hover,
.site-header--subpage .nav-link.active {
  color: var(--ark-green-dark);
  background: var(--ark-green-tint);
}

/* Nav CTA Button: Crisp Elevated White Pill with Zero Wrapping */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: #065F46;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  touch-action: manipulation;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.35rem;
}

.nav-cta-btn svg {
  flex-shrink: 0;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  color: #047857;
  text-decoration: none;
}

body:not(:has(.ark-hero)) .nav-cta-btn,
.site-header--subpage .nav-cta-btn {
  background: var(--ark-green);
  color: #FFFFFF;
}

body:not(:has(.ark-hero)) .nav-cta-btn:hover,
.site-header--subpage .nav-cta-btn:hover {
  background: var(--ark-green-dark);
  color: #FFFFFF;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
  touch-action: manipulation;
  transition: background-color var(--transition-fast);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

body:not(:has(.ark-hero)) .mobile-toggle,
.site-header--subpage .mobile-toggle {
  background: #F1F5F9;
  color: var(--text-dark);
  border-color: var(--border-light);
}

body:not(:has(.ark-hero)) .mobile-toggle:hover,
.site-header--subpage .mobile-toggle:hover {
  background: #E2E8F0;
}

/* ==========================================================================
   Hero Section (Ark7 Vibrant Emerald Wave Canvas)
   ========================================================================== */
.ark-hero {
  position: relative;
  background-color: #047857;
  background: var(--ark-green-bg);
  color: var(--text-light);
  padding-top: 8rem;
  padding-bottom: 6rem;
  overflow: hidden;
}

/* Sweeping Sinusoidal Wireframe Mesh Curves */
.ark-hero-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/ark-waves.svg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.ark-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.ark-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ark-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.ark-hero-title {
  color: #FFFFFF;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.ark-hero-subhead {
  color: var(--text-light-subtle);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  font-weight: 500;
  margin-bottom: 1rem;
}

.ark-hero-desc {
  color: var(--text-light-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 540px;
}

/* Ark7 Hero Action: Crisp White Card Button */
.ark-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.ark-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #FFFFFF;
  color: var(--ark-green-dark);
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  font-weight: 800;
  font-size: 1.05rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  touch-action: manipulation;
}

.ark-hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  color: var(--ark-green);
  text-decoration: none;
}

.ark-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  touch-action: manipulation;
}

.ark-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #FFFFFF;
  text-decoration: none;
}

.ark-hero-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-light-subtle);
  font-weight: 600;
}

.ark-hero-stars {
  color: #FFD600;
  letter-spacing: 2px;
}

/* ==========================================================================
   Dual Overlapping Phone Mockup (Ark7 Signature Architecture)
   ========================================================================== */
.ark-mockup-duo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 720px;
}

/* Samsung Galaxy S24 Ultra-Slim Bezel Chassis (Locked 9:19 Smartphone Ratio) */
.ark-phone {
  background: #18171E;
  border-radius: 36px;
  padding: 4px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 35px 85px -15px rgba(0, 0, 0, 0.6),
    0 15px 35px -5px rgba(0, 0, 0, 0.35);
  border: 2px solid #2B2A34;
  position: relative;
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ark-phone-screen {
  background: #212029;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
}

.ark-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Back Phone: Slightly recessed, tilted left */
.ark-phone--back {
  position: absolute;
  left: 10px;
  top: 35px;
  width: 290px;
  height: 612px; /* Exact 9:19 aspect ratio */
  transform: rotate(-7deg) scale(0.92);
  z-index: 1;
  opacity: 0.96;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
}

/* Front Phone: Elevated forward with rich UI */
.ark-phone--front {
  position: relative;
  left: 70px;
  width: 320px;
  height: 676px; /* Exact 9:19 aspect ratio */
  z-index: 2;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 40px 90px -15px rgba(0, 0, 0, 0.7),
    0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Wave Divider (Seamless Transition) */
.ark-wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
}

.ark-wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.ark-wave-divider path {
  fill: var(--bg-primary);
}

.ark-wave-divider--to-green path {
  fill: var(--ark-green);
}

/* ==========================================================================
   Section 2: "Explore" (Ark7 Style: Phone + Lime Circle + Floating Pins)
   ========================================================================== */
.ark-section-explore {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
}

.ark-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4.5rem;
}

.ark-story-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.ark-story-media-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 720px;
}

/* Soft Decorative Lime Circle */
.ark-decor-circle {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ark-lime) 0%, var(--ark-green-subtle) 100%);
  opacity: 0.85;
  z-index: 0;
  animation: pulseSubtle 6s ease-in-out infinite alternate;
}

@keyframes pulseSubtle {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.04); }
}

/* Single Showcase Phone (Exact 9:19 Ratio - Samsung Galaxy S24) */
.ark-showcase-phone {
  position: relative;
  z-index: 2;
  width: 310px;
  height: 654px; /* Exact 9:19 aspect ratio (310 * 19 / 9) */
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 40px 90px -15px rgba(0, 0, 0, 0.65), 
    0 15px 35px rgba(0, 0, 0, 0.35);
}

/* Floating Pins Around Phone */
.ark-floating-pin {
  position: absolute;
  background: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  z-index: 3;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ark-pin-1 {
  top: 15%;
  left: -20px;
  animation: floatPin 4s ease-in-out infinite;
}

.ark-pin-2 {
  bottom: 25%;
  left: -10px;
  animation: floatPin 5s ease-in-out infinite 1s;
}

.ark-pin-3 {
  bottom: 15%;
  right: -20px;
  animation: floatPin 4.5s ease-in-out infinite 0.5s;
}

@keyframes floatPin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ark-pin-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ark-green-subtle);
  color: var(--ark-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ark-pin-icon svg {
  width: 14px;
  height: 14px;
}

/* Story Content Text */
.ark-story-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ark-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #065F46;
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.ark-story-title {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.ark-story-desc {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.ark-feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ark-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ark-bullet-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ark-green-subtle);
  color: var(--ark-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ark-bullet-text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.ark-bullet-text strong {
  color: var(--text-dark);
}

.ark-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  gap: 0.5rem;
  color: var(--ark-green-dark);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
  touch-action: manipulation;
}

.ark-text-link:hover {
  color: var(--ark-green);
  gap: 0.75rem;
  text-decoration: underline;
}

/* ==========================================================================
   Section 3: "Customize" (Ark7 Style: Studio Features)
   ========================================================================== */
.ark-section-customize {
  padding: 6rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

/* Floating Micro Tool Badges */
.ark-tool-badge {
  position: absolute;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  border: 1px solid var(--border-light);
}

.ark-tool-badge-1 {
  top: 10%;
  right: -25px;
  animation: floatPin 4.2s ease-in-out infinite 0.3s;
}

.ark-tool-badge-2 {
  bottom: 20%;
  left: -20px;
  animation: floatPin 4.8s ease-in-out infinite 1.2s;
}

.ark-tool-badge-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
}

.ark-tool-badge-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 4: "1-Tap Cutout" (Ark7 Vibrant Green Wave Section)
   ========================================================================== */
.ark-section-cutout {
  padding: 6rem 0;
  background: var(--ark-green-bg);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.ark-section-cutout .ark-hero-mesh {
  opacity: 0.3;
}

.ark-section-cutout .ark-kicker-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ark-section-cutout .ark-story-title {
  color: #FFFFFF;
}

.ark-section-cutout .ark-story-desc {
  color: var(--text-light-subtle);
}

.ark-section-cutout .ark-bullet-check {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.ark-section-cutout .ark-bullet-text {
  color: #FFFFFF;
}

.ark-section-cutout .ark-bullet-text strong {
  color: #FFFFFF;
}

.ark-section-cutout .ark-hero-btn {
  background: #FFFFFF;
  color: var(--ark-green-dark);
}

/* Floating Modal Dialog on Cutout Phone (Ark7 Style) - Fully Interactive & Working */
.ark-cutout-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 0, 0, 0.06);
  z-index: 2;
  color: var(--text-dark);
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ark-cutout-modal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 75px -6px rgba(0, 0, 0, 0.38);
}

.ark-modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.ark-modal-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.ark-modal-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: #ECFDF5;
  color: #047857;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(4, 120, 87, 0.15);
  transition: all 0.2s ease;
}

.ark-modal-slider-bar {
  display: flex;
  flex-direction: column;
  background: #F8FAFC;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  margin-bottom: 0.85rem;
}

.ark-slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.25rem;
}

.ark-slider-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ark-slider-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #047857;
  font-variant-numeric: tabular-nums;
}

/* Precision HTML5 Range Slider: Slim 6px track, Crisp 22px thumb */
.ark-cutout-range-input {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #E2E8F0;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  margin: 10px 0 6px;
  padding: 0;
  border: none;
  box-sizing: border-box;
  touch-action: manipulation;
}

.ark-cutout-range-input::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  border-radius: 999px;
  background: transparent;
}

.ark-cutout-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #047857;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(4, 120, 87, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ark-cutout-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(4, 120, 87, 0.25);
}

.ark-cutout-range-input::-moz-range-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  border-radius: 999px;
  background: transparent;
}

.ark-cutout-range-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #047857;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* 5-Column Segmented Mode Dock: Zero Overflow, Clean Apple/Figma Tool Rack */
.ark-modal-modes-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  background: #F1F5F9;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
}

.ark-mode-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  padding: 6px 2px;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
  user-select: none;
}

.ark-mode-pill span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.ark-mode-pill svg {
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease, fill 0.2s ease;
}

.ark-mode-pill:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #0F172A;
}

.ark-mode-pill.is-active {
  background: #FFFFFF;
  color: #047857;
  border-color: rgba(4, 120, 87, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(4, 120, 87, 0.1);
}

.ark-mode-pill.is-active svg {
  transform: scale(1.08);
}

.ark-cutout-mode-info {
  margin-top: 0.85rem;
  font-size: 0.76rem;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  line-height: 1.45;
  transition: all 0.25s ease;
}

.ark-cutout-mode-info strong {
  color: #0F172A;
}

/* ==========================================================================
   Section 5: "Export in Full HD" (Ark7 Clean Minimal Architecture)
   ========================================================================== */
.ark-section-export {
  padding: 5.5rem 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.ark-export-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 1.75rem;
}

.ark-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14, 172, 255, 0.08);
  border: 1px solid rgba(14, 172, 255, 0.22);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
}

.ark-pill-check {
  color: #0EACFF;
  font-weight: 900;
}

.ark-export-cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* Minimalist HD Gallery Card */
.ark-hd-gallery-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.07);
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ark-hd-gallery-card:hover {
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

/* Category Filter Tabs */
.ark-gallery-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.ark-gallery-tabs::-webkit-scrollbar {
  display: none;
}

.ark-tab-btn {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.ark-tab-btn:hover {
  color: var(--text-dark);
  background: rgba(14, 172, 255, 0.1);
  border-color: rgba(14, 172, 255, 0.2);
}

.ark-tab-btn.is-active {
  background: #0EACFF;
  color: #FFFFFF;
  border-color: #0EACFF;
  box-shadow: 0 2px 8px rgba(14, 172, 255, 0.32);
}

/* 16:9 HD Display Stage */
.ark-gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0B0E14;
  margin: 0.75rem 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.ark-gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.ark-stage-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Clean Mini Strip */
.ark-gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.ark-strip-item {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  display: block;
  outline: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ark-strip-item:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 172, 255, 0.5);
}

.ark-strip-item.is-active {
  border-color: #0EACFF;
  box-shadow: 0 0 0 2px rgba(14, 172, 255, 0.4);
}

.ark-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .ark-gallery-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Interactive Studio Sandbox Section
   ========================================================================== */
.studio-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.studio-controls {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.studio-control-group {
  display: flex;
  flex-direction: column;
}

.studio-control-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.studio-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.studio-tab-btn {
  padding: 0.75rem 0.85rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  touch-action: manipulation;
}

.studio-tab-btn:hover {
  background: var(--border-light);
}

.studio-tab-btn.is-active {
  background: var(--ark-green);
  color: #FFFFFF;
  border-color: var(--ark-green);
  box-shadow: 0 4px 12px rgba(6, 167, 74, 0.25);
}

.studio-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.studio-input:focus {
  border-color: var(--ark-green);
  outline: none;
}

.studio-style-pills {
  display: flex;
  gap: 0.5rem;
}

.studio-pill-btn {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.studio-pill-btn.is-active {
  background: var(--text-dark);
  color: #FFFFFF;
}

.studio-toggle-3d {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--ark-green-subtle);
  color: var(--ark-green-dark);
  border: 1px solid rgba(6, 167, 74, 0.3);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.studio-toggle-3d:hover {
  background: var(--ark-green);
  color: #FFFFFF;
}

.studio-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.studio-canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.studio-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
}

.layer-depth-pill {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
}

.is-exploded .layer-depth-pill {
  display: block;
}

.studio-layer--bg {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  background-size: cover;
}

.studio-layer--overlay {
  background: radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.4) 0%, transparent 60%);
  mix-blend-mode: screen;
}

.studio-layer--subject {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 4%;
  pointer-events: none;
}

.studio-subject-img {
  height: 94%;
  width: auto;
  max-width: 48%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.75));
  display: block;
}

.studio-layer--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 8%;
  padding-right: 40%;
  gap: 0.65rem;
  pointer-events: none;
}

.studio-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  color: #FFEA00;
  text-shadow: 3px 3px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 8px 25px rgba(0, 0, 0, 0.85);
  letter-spacing: 0.03em;
  line-height: 0.95;
  transition: transform 0.2s ease, color 0.2s ease;
}

.studio-headline.style-impact {
  font-family: 'Bebas Neue', sans-serif;
  font-style: normal;
  letter-spacing: 0.03em;
  transform: none;
}

.studio-headline.style-italic {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  transform: skewX(-8deg);
}

.studio-headline.style-cyber {
  font-family: 'Courier New', Courier, monospace;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-badge-tag {
  background: #E11D48;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* 3D Exploded Layer Mode */
.is-exploded {
  transform: rotateX(45deg) rotateY(-20deg) rotateZ(15deg) scale(0.85) !important;
}

.is-exploded .studio-layer--bg {
  transform: translateZ(0px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.is-exploded .studio-layer--overlay {
  transform: translateZ(40px);
  border: 1px dashed rgba(255,255,255,0.4);
}

.is-exploded .studio-layer--subject {
  transform: translateZ(80px);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6));
}

.is-exploded .studio-layer--text {
  transform: translateZ(120px);
}

/* ==========================================================================
   Template Gallery Section (Ark7 Clean Luxury Cards)
   ========================================================================== */
.template-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.template-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1.5rem;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.template-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.template-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.template-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.template-card:hover .template-img-wrap img {
  transform: scale(1.05);
}

.template-content {
  padding: 1rem 1.25rem;
}

.template-genre {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ark-green-dark);
  margin-bottom: 0.25rem;
}

.template-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.template-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  border-top: 1px solid var(--border-light);
  padding-top: 0.6rem;
}

/* ==========================================================================
   Before/After Slider & Bento Grid Section
   ========================================================================== */
.bento-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.bento-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.bento-card--span-2 {
  grid-column: span 2;
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  width: fit-content;
}

.bento-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.bento-badge--emerald { background: var(--ark-green-subtle); color: var(--ark-green-dark); }
.bento-badge--cyan { background: #E0F2FE; color: #0284C7; }
.bento-badge--indigo { background: #EEF2FF; color: #4F46E5; }
.bento-badge--red { background: #FEE2E2; color: #DC2626; }
.bento-badge--amber { background: #FEF3C7; color: #D97706; }

.bento-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.bento-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ark-green-dark);
  text-decoration: none;
  touch-action: manipulation;
}

.bento-link:hover {
  color: var(--ark-green);
  text-decoration: underline;
}

/* Live Cutout Slider */
.compare-slider-wrap {
  --clip-pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  margin-bottom: 1rem;
}

.compare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.compare-before {
  display: block;
}

.compare-after-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100%;
  -webkit-clip-path: inset(0 calc(100% - var(--clip-pos, 50%)) 0 0);
  clip-path: inset(0 calc(100% - var(--clip-pos, 50%)) 0 0);
  z-index: 2;
  pointer-events: none;
}

.compare-after-wrap .compare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.compare-before {
  display: block;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
  transform: translateX(-50%);
}

.compare-handle-button {
  width: 38px;
  height: 38px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 3px var(--ark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #111827;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.compare-label {
  position: absolute;
  top: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 5;
  user-select: none;
  -webkit-user-select: none;
}

.compare-label--before {
  left: 14px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #F9FAFB;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.compare-label--after {
  right: 14px;
  background: var(--ark-green);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.compare-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.compare-tip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ark-green-dark);
  font-weight: 700;
}

/* ==========================================================================
   Reviews & Testimonials Section (Ark7 Clean Luxury Cards)
   ========================================================================== */
.reviews-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.review-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #FFB800;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.review-quote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ark-green-subtle);
  color: var(--ark-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.review-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
}

.review-subscribers {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   How-To Steps & FAQ Sections
   ========================================================================== */
.section {
  padding: 5rem 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.section--alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* Ambient Background Orbs */
.ambient-glow-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient-orb--indigo {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #6366F1 0%, rgba(99, 102, 241, 0) 70%);
  top: -80px;
  right: 5%;
}

.ambient-orb--purple {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #A855F7 0%, rgba(168, 85, 247, 0) 70%);
  top: 15%;
  left: 0;
}

.ambient-orb--cyan {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #06B6D4 0%, rgba(6, 182, 212, 0) 70%);
  top: 10%;
  right: 0;
}

/* ==========================================================================
   Section Header & Component Layout System
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-header .badge-pill {
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.section-header p,
.section-header .section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Card Step Badge */
.card-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #D1FAE5;
  color: #065F46;
  margin-bottom: 1rem;
  width: fit-content;
  border: 1px solid #A7F3D0;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

/* Cards System */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  border-color: rgba(6, 167, 74, 0.35);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--ark-green-tint);
  color: var(--ark-green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  border: 1px solid rgba(5, 197, 87, 0.2);
  box-shadow: 0 2px 8px rgba(6, 167, 74, 0.08);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-title,
h2.card-title,
h3.card-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-dark) !important;
  margin-top: 0 !important;
  margin-bottom: 0.85rem !important;
}

.card-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 0;
}

.card-desc + .card-desc {
  margin-top: 0.75rem;
}

/* Callouts */
.callout {
  background: var(--bg-secondary);
  border-left: 4px solid var(--ark-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.callout--warning {
  border-left-color: var(--accent-amber);
  background: #FFFBEB;
}

.callout-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.callout p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 0;
}

/* Call to Action Banner */
.cta-banner {
  background-color: #047857;
  background: var(--ark-green-bg);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 4.5rem 2rem;
  text-align: center;
  margin: 4.5rem auto 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(6, 167, 74, 0.35);
}

.cta-banner-title {
  color: #FFFFFF !important;
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-banner-desc {
  color: var(--text-light-subtle);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-banner .btn-primary {
  background: #FFFFFF;
  color: var(--ark-green-dark);
  font-weight: 800;
}

.cta-banner .btn-primary:hover {
  background: #F1F5F9;
  color: var(--ark-green);
}

.cta-banner .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

.cta-banner .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Table Wrapper */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 2.5rem 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: #FFFFFF;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.98rem;
}

.table-wrapper th {
  background: var(--bg-secondary);
  color: var(--text-dark);
  font-weight: 800;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: -0.01em;
}

.table-wrapper td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  line-height: 1.6;
}

.table-wrapper tr:last-child td {
  border-bottom: none;
}

.table-wrapper tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.6);
}

/* Article Layout for Guides */
.article-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3rem;
  padding-top: 1.5rem;
}

.article-header h1 {
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 1.25rem;
}

.article-meta code {
  background: var(--bg-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  color: var(--ark-green-dark);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
}

.article-content > h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.article-content > h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 2rem;
}

.article-content ul,
.article-content ol {
  margin: 1.25rem 0 2rem 1.5rem;
  color: var(--text-body);
  line-height: 1.7;
}

.article-content li {
  margin-bottom: 0.6rem;
}

.badge-pill--accent {
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-weight: 800;
}

.steps-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ark-green-subtle);
  color: var(--ark-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0;
}

.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #FFFFFF;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  font-weight: 600;
  color: var(--text-dark);
}

.checklist-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ark-green-subtle);
  color: var(--ark-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 800px;
}

.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--ark-green-dark);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ==========================================================================
   Pre-Footer Green Wave CTA Banner (Ark7 Signature Architecture)
   ========================================================================== */
.ark-pre-footer-cta {
  background: var(--ark-green-bg);
  color: #FFFFFF;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ark-cta-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/ark-waves.svg');
  background-position: center bottom;
  background-size: cover;
  opacity: 0.35;
  pointer-events: none;
}

.ark-cta-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ark-cta-app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
}

.ark-cta-title {
  color: #FFFFFF;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.ark-cta-subhead {
  color: var(--text-light-subtle);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.ark-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #FFFFFF;
  color: var(--ark-green-dark);
  padding: 1rem 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  font-weight: 900;
  font-size: 1.15rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.ark-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  color: var(--ark-green);
  text-decoration: none;
}

.ark-cta-guarantee {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-light-muted);
  font-weight: 600;
}

/* ==========================================================================
   Site Footer (Ark7 Clean White Luxury)
   ========================================================================== */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 4.5rem 0 2.5rem;
  color: var(--text-body);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-brand .brand-title {
  color: var(--text-dark);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-body);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--ark-green-dark);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   Subpage Breadcrumbs & Article Content
   ========================================================================== */
.breadcrumbs {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-body);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--ark-green-dark);
}

.breadcrumb-separator {
  color: var(--text-muted);
  font-weight: 600;
}

.article-content {
  max-width: 840px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  touch-action: manipulation;
}

.btn-primary {
  background: #047857;
  background-image: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #FFFFFF;
  border: 1px solid #065F46;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.35);
}

.btn-primary:hover {
  background: #065F46;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(6, 95, 70, 0.45);
}
  color: #FFFFFF;
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--border-light);
  text-decoration: none;
}

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

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ark-green-subtle);
  color: var(--ark-green-dark);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.badge-icon-inline {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

/* ==========================================================================
   Subpage Showcase & Hero Components
   ========================================================================== */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-media {
  position: relative;
  width: 100%;
}

.card-3d-wrap {
  position: relative;
  width: 100%;
  perspective: 1200px;
}

.card-3d {
  transform-style: preserve-3d;
  will-change: transform;
}

.showcase-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0F172A;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.14), 0 10px 20px -5px rgba(15, 23, 42, 0.06);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.showcase-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.22), 0 15px 25px -5px rgba(6, 167, 74, 0.15);
}

.card-3d-inner {
  position: relative;
  overflow: hidden;
}

.card-3d-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 65%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 2;
}

.showcase-frame:hover .card-3d-glare {
  opacity: 1;
}

.showcase-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: #0F172A;
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-caption span:first-child {
  color: #F8FAFC;
  font-weight: 700;
}

/* Floating Micro-Badges on Showcase */
.floating-badge {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.floating-badge--top-left {
  top: -14px;
  left: -14px;
}

.floating-badge--bottom-right {
  bottom: 24px;
  right: -14px;
  animation-delay: -2s;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-emerald {
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
}

.pulse-cyan {
  background: #06B6D4;
  box-shadow: 0 0 10px #06B6D4;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    align-items: center;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .floating-badge--top-left {
    top: -10px;
    left: 10px;
  }
  
  .floating-badge--bottom-right {
    bottom: 20px;
    right: 10px;
  }
  .ark-hero-grid,
  .ark-story-grid,
  .ark-story-grid--reverse {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .ark-hero-content {
    align-items: center;
    text-align: center;
  }
  
  .ark-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .ark-hero-actions {
    justify-content: center;
  }
  
  .studio-grid {
    grid-template-columns: 1fr;
  }
  
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-card--span-2 {
    grid-column: span 1;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-list {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Section Spacing Rhythm Scaling (UI/UX Pro Max Guideline) */
  .section,
  .ark-section-explore,
  .ark-section-customize,
  .ark-section-cutout,
  .studio-section,
  .template-section,
  .bento-section,
  .reviews-section,
  .ark-pre-footer-cta {
    padding: 3.5rem 0;
  }
  
  .ark-hero {
    padding: 7rem 0 3.5rem;
  }
  
  .hero {
    padding: 4rem 0 3rem;
  }
  
  .section-cta {
    padding: 2.5rem 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 1.75rem 1.5rem;
  }
  
  .cta-banner {
    padding: 3rem 1.5rem;
    margin: 2rem auto;
  }
  
/* Mobile Nav moved to dedicated @media (max-width: 991px) block below */
  
  .ark-mockup-duo {
    min-height: 480px;
  }
  
  .ark-phone--back {
    display: none; /* Hide background tilted phone on small mobile for clarity */
  }
  
  .ark-phone--front {
    left: 0;
    width: 280px;
  }
  
  .ark-decor-circle {
    width: 280px;
    height: 280px;
  }
  
  .ark-floating-pin {
    display: none; /* Hide floating pins on narrow screens */
  }
  
  .checklist {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .template-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* Ultra-compact screen rhythm */
  .section,
  .ark-section-explore,
  .ark-section-customize,
  .ark-section-cutout,
  .studio-section,
  .template-section,
  .bento-section,
  .reviews-section,
  .ark-pre-footer-cta {
    padding: 2.75rem 0;
  }
  
  .ark-hero {
    padding: 6rem 0 2.5rem;
  }
  
  .hero {
    padding: 3.25rem 0 2.25rem;
  }
  
  .section-cta {
    padding: 2rem 0;
  }
  
  .hero-actions,
  .ark-hero-actions,
  .cta-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .hero-actions .btn,
  .ark-hero-actions .btn,
  .cta-actions .btn,
  .ark-hero-btn,
  .ark-hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Cutout Screen Flanking Tool Badges */
.ark-tool-badge--cutout-offset {
  top: 12%;
  right: -30px;
}

.ark-tool-badge--cutout-thresh {
  bottom: 12.5%;
  left: -30px;
}

@media (max-width: 991px) {
  .ark-tool-badge,
  .ark-tool-badge--cutout-offset,
  .ark-tool-badge--cutout-thresh {
    display: none !important;
  }
}

/* Grid & Element Robust Boundary Rules */
.ark-story-grid > *,
.ark-story-grid--reverse > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ark-hd-gallery-card {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.ark-gallery-stage {
  max-width: 100%;
  overflow: hidden;
}

.ark-gallery-stage img {
  max-width: 100%;
  height: auto;
}

.ambient-glow-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .ambient-orb {
    max-width: 80vw;
    max-height: 80vw;
    left: 10% !important;
    right: auto !important;
  }
}


@media (max-width: 991px) {
  /* Mobile Navigation Drawer (Sleek Glassmorphic Sheet) */
  .nav-menu {
    display: none;
  }
  
  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #FFFFFF;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem;
    gap: 0.5rem;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border-light);
    border-top: 1px solid var(--border-light);
    z-index: 1000;
    animation: navDrawerFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  @keyframes navDrawerFade {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .nav-menu.is-open .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark) !important;
    text-decoration: none;
    background: transparent;
    transition: background-color var(--transition-fast), color var(--transition-fast);
  }
  
  .nav-menu.is-open .nav-link:hover,
  .nav-menu.is-open .nav-link:focus-visible,
  .nav-menu.is-open .nav-link.active {
    background: #ECFDF5;
    color: #047857 !important;
  }
  
  .nav-menu.is-open .nav-cta-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    margin: 0.5rem 0 0 0;
    font-size: 0.98rem;
  }
  
  .mobile-toggle {
    display: inline-flex;
  }
}
