@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/SpaceGrotesk.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* MiniPaint AI Official "Colour Laboratory" Design Tokens */
  --bg-primary: #0A0D0F;
  --bg-surface: #14191D;
  --bg-elevated: #1C2328;
  --bg-card: rgba(20, 25, 29, 0.82);
  --bg-glass: rgba(20, 25, 29, 0.65);
  
  /* Action & AI Signals */
  --accent-action: #FF7658;
  --accent-action-bright: #FF8B72;
  --accent-action-tint: rgba(255, 118, 88, 0.14);
  --accent-action-border: rgba(255, 118, 88, 0.35);
  
  --accent-ai: #45E0CE;
  --accent-ai-soft: #7DEBDD;
  --accent-ai-tint: rgba(69, 224, 206, 0.14);
  --accent-ai-border: rgba(69, 224, 206, 0.35);
  
  --accent-success: #A6EC78;
  --accent-success-tint: rgba(166, 236, 120, 0.14);
  
  /* Pro Gold (Strict 1% visual weight for Pro tier) */
  --accent-gold: #C9A24B;
  --accent-gold-bright: #E5BE65;
  --accent-gold-tint: rgba(201, 162, 75, 0.16);
  --accent-gold-border: rgba(201, 162, 75, 0.45);

  /* Typography & Neutrals */
  --text-primary: #F5F6F2;
  --text-secondary: #929C9E;
  --text-muted: #5E697D;
  --border-color: rgba(255, 255, 255, 0.08);
  --accent-warning: #E8B84A;
  --accent-danger: #EF5B67;
  --border-hover: rgba(255, 255, 255, 0.18);
  
  --shadow-glow: 0 0 50px -10px rgba(255, 118, 88, 0.25);
  --shadow-ai-glow: 0 0 50px -10px rgba(69, 224, 206, 0.25);
  --shadow-card: 0 20px 30px -8px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.7);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 12%, rgba(255, 118, 88, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 65%, rgba(69, 224, 206, 0.07) 0%, transparent 50%);
}

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

/* Lucide Icon Base Styling */
.lucide {
  vertical-align: middle;
  stroke-width: 2px;
}

.lucide-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-action-tint);
  color: var(--accent-action);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--accent-action-border);
}

.lucide-icon-box.ai {
  background: var(--accent-ai-tint);
  color: var(--accent-ai);
  border-color: var(--accent-ai-border);
}

.lucide-icon-box.gold {
  background: var(--accent-gold-tint);
  color: var(--accent-gold);
  border-color: var(--accent-gold-border);
}

.lucide-icon-box.success {
  background: var(--accent-success-tint);
  color: var(--accent-success);
  border-color: rgba(166, 236, 120, 0.3);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 13, 15, 0.85);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  transition: all 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(255, 118, 88, 0.35);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.btn-download-nav {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--accent-action), var(--accent-action-bright));
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(255, 118, 88, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-download-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 118, 88, 0.55);
}

/* Mobile Nav Toggle Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: var(--accent-ai-tint);
  border: 1px solid var(--accent-ai-border);
  border-radius: var(--radius-full);
  color: var(--accent-ai);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: linear-gradient(135deg, #FFF 30%, var(--accent-action) 70%, var(--accent-action-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 54px;
  flex-wrap: wrap;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
}

.btn-appstore:hover {
  transform: translateY(-2px);
  border-color: var(--accent-action);
  box-shadow: 0 10px 25px rgba(255, 118, 88, 0.3);
}

.btn-appstore svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.btn-appstore-text {
  text-align: left;
  line-height: 1.15;
}

.btn-appstore-text span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.btn-appstore-text strong {
  font-size: 1.2rem;
  font-weight: 800;
}

/* App Hero Showcase Mockup */
.hero-showcase {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.hero-mockup-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
}

.hero-img-box {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 118, 88, 0.2) 0%, rgba(10, 13, 15, 0.85) 75%);
}

.hero-img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
}

.hero-details-box {
  padding: 44px;
  text-align: left;
}

.hero-feature-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-feature-item:last-child {
  margin-bottom: 0;
}

.hero-feature-text h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-feature-text p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Section Header */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  color: var(--accent-action);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-title {
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: left;
  backdrop-filter: blur(16px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-action-border);
  box-shadow: var(--shadow-card);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 18px 0 8px;
}

.feature-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Interactive Palette & Inspector Boxes */
.palette-demo-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 940px;
  margin: 0 auto;
  box-shadow: var(--shadow-card), var(--shadow-ai-glow);
  backdrop-filter: blur(16px);
}

.palette-preset-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.palette-preset-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.palette-preset-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.palette-preset-btn.active {
  background: var(--accent-ai-tint);
  color: var(--accent-ai);
  border-color: var(--accent-ai-border);
}

.palette-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.swatch-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  transition: transform 0.2s, border-color 0.2s;
}

.swatch-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.swatch-color {
  height: 100px;
  width: 100%;
}

.swatch-info {
  padding: 14px;
  font-size: 0.82rem;
}

.swatch-role {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.swatch-name {
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swatch-brand {
  color: var(--text-secondary);
  font-size: 0.76rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  transition: transform 0.2s, border-color 0.2s;
}

.pricing-card.featured {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, var(--accent-gold-tint) 0%, rgba(20, 25, 29, 0.95) 100%);
  box-shadow: 0 0 45px -5px rgba(201, 162, 75, 0.35);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pricing-name {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.pricing-features li .lucide {
  color: var(--accent-action);
  flex-shrink: 0;
}

.pricing-card.featured .pricing-features li .lucide {
  color: var(--accent-gold);
}

.btn-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-pricing.primary {
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  color: #000;
  box-shadow: 0 4px 14px rgba(201, 162, 75, 0.4);
}

.btn-pricing.secondary {
  background: var(--bg-elevated);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-pricing:hover {
  transform: translateY(-2px);
}

/* FAQ Accordion */
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--accent-action-border);
}

.faq-question {
  padding: 22px 26px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--accent-action);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding-bottom: 22px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 56px 0 36px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

/* Legal Pages */
.legal-content {
  max-width: 860px;
  margin: 60px auto 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  backdrop-filter: blur(16px);
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.legal-content .legal-date {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 32px 0 12px;
  color: var(--accent-action);
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 880px) {
  .hero-mockup-frame {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(10, 13, 15, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .palette-swatches {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.featured {
    transform: none;
  }
  .legal-content {
    padding: 28px 20px;
  }
}
