/* ============================================
   FUKU GYOZA — Premium Brand Design System
   Professional · Modern · Framer-Level
   ============================================ */

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

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

:root {
  --red-900: #1a0505;
  --red-800: #2d0a0a;
  --red-700: #5c1515;
  --red-600: #8b2020;
  --red-500: #d32f2f;
  --red-400: #e85a5a;
  --red-300: #f28b8b;
  --red-100: #fef2f2;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --dark: #0a0a0b;
  --dark-2: #18181b;
  --dark-3: #27272a;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.04);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 24px 80px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(211,47,47,0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Playfair Display', serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========== NOISE OVERLAY ========== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ========== GRADIENT BACKGROUND ========== */
.bg-gradient {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: -2;
  background: radial-gradient(ellipse at 20% 50%, rgba(211,47,47,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(211,47,47,0.03) 0%, transparent 50%);
  animation: gradientShift 20s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, -5%) rotate(5deg); }
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1200px;
  background: rgba(24,24,27,0.7);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-100px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.navbar .logo .emoji {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--red-500), var(--gold));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.navbar .logo span {
  background: linear-gradient(135deg, var(--text), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.navbar nav a.active {
  color: var(--text);
  background: rgba(211,47,47,0.15);
  box-shadow: inset 0 0 0 1px rgba(211,47,47,0.2);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,47,47,0.08) 0%, transparent 60%);
  top: -200px;
  right: -300px;
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.05) 0%, transparent 60%);
  bottom: -200px;
  left: -200px;
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(211,47,47,0.1);
  border: 1px solid rgba(211,47,47,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--red-300);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out;
}

.hero .badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--red-400);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero .emoji-large {
  font-size: 5rem;
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(211,47,47,0.2));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(2deg); }
  66% { transform: translateY(-4px) rotate(-1deg); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--red-400), var(--gold-light), var(--red-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-500), var(--red-600));
  color: var(--text);
  box-shadow: 0 4px 24px rgba(211,47,47,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(211,47,47,0.35);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
}

.btn-glow {
  box-shadow: 0 0 30px rgba(211,47,47,0.15), 0 4px 24px rgba(211,47,47,0.25);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== PAGE HEADER ========== */
.page-header {
  padding: 140px 24px 60px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(211,47,47,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--text-dim);
  animation: fadeInUp 0.6s ease-out;
}

.page-header .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.page-header .breadcrumb a:hover { color: var(--text); }

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ========== CONTENT SECTIONS ========== */
.section {
  padding: 60px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.section-wide {
  max-width: 1200px;
  padding: 60px 24px;
  margin: 0 auto;
}

/* ========== DOCUMENT CARD ========== */
.doc-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.doc-card:hover {
  border-color: rgba(255,255,255,0.1);
  box-shadow: var(--shadow-glow);
}

.doc-card .card-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-card .card-header .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(211,47,47,0.15), rgba(245,158,11,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.doc-card .card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.doc-card .card-body {
  padding: 28px 32px;
}

/* ========== LEGAL CONTENT ========== */
.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 0.9375rem;
}

.legal-content ul {
  margin: 8px 0 20px 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-content ul li {
  margin-bottom: 8px;
  padding-left: 8px;
}

.legal-content ul li::marker { color: var(--red-400); }

.legal-content .highlight-box {
  background: linear-gradient(135deg, rgba(211,47,47,0.08), rgba(245,158,11,0.04));
  border: 1px solid rgba(211,47,47,0.15);
  border-left: 3px solid var(--red-500);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.legal-content .highlight-box p {
  color: var(--text);
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.legal-content .meta {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ========== FEATURES GRID ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.feature-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--dark-3);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */
.footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.footer .footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.footer p {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer .links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 20px 0;
}

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

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

.footer .copyright {
  font-size: 0.8125rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  margin-top: 24px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .navbar {
    top: 8px;
    padding: 10px 16px;
    width: calc(100% - 16px);
  }
  .navbar nav a {
    padding: 6px 12px;
    font-size: 0.8125rem;
  }
  .section { padding: 40px 20px; }
  .doc-card .card-header,
  .doc-card .card-body { padding: 20px; }
  .page-header { padding: 120px 20px 40px; }
}

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========== HERO CONTENT CARD ========== */
.hero-content-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content-card .card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  transition: var(--transition);
}

.hero-content-card .card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.hero-content-card .card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-content-card .card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-content-card .card .link {
  font-size: 0.875rem;
  color: var(--red-300);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-content-card .card .link:hover { color: var(--red-200); }

/* ========== SUBTLE DIVIDER ========== */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--red-500), var(--gold));
  border-radius: 2px;
  margin: 16px auto 24px;
}
