/* ==========================================================
   JENLU.IN — APPLE-INSPIRED MINIMALIST DESIGN SYSTEM
   ========================================================== */

:root {
  --bg-primary: #000000;
  --bg-secondary: #0b0c0f;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.25);
  
  --text-primary: #FFFFFF;
  --text-secondary: #86868B;
  --text-muted: #515154;
  --text-accent: #2997FF;

  --accent-apple-blue: #0071E3;
  --accent-apple-blue-hover: #0077ED;
  --accent-green: #30D158;
  --accent-gold: #FFD60A;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  background-color: #000000;
}

/* ─── Ambient Glow ─── */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle at center, rgba(41, 151, 255, 0.12) 0%, rgba(138, 43, 226, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  transition: opacity 0.8s ease;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─── Typography & Utilities ─── */
.gradient-text {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-green {
  color: var(--accent-green) !important;
}

/* ─── Apple Navbar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.nav-container {
  max-width: 1080px;
  height: 54px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-icon svg {
  display: block;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.nav-item {
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition-fast);
  letter-spacing: -0.01em;
}

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

.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.mobile-toggle span {
  display: block;
  height: 1.5px;
  width: 20px;
  background: #fff;
  transition: transform 0.2s ease;
}

/* ─── Hero Section ─── */
.hero-section {
  padding-top: 130px;
  padding-bottom: 70px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.hero-description {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 50px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: #FFFFFF;
  color: #000000;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: scale(1.02);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-focus);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ─── Hero Visual & Phone Device Frame ─── */
.hero-visual {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.device-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(41, 151, 255, 0.15);
  backdrop-filter: blur(30px);
}

.device-inner {
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 24px 20px;
  text-align: left;
}

.device-notch {
  width: 90px;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  margin: 0 auto 18px;
}

.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.app-chip {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.flavor-chip {
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #FFD60A, #FF9F0A);
  color: #000;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.caller-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.preview-number-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071E3, #5E5CE6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 113, 227, 0.5);
}

.preview-number {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.preview-nickname {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.preview-callout {
  font-size: 12px;
  color: var(--text-secondary);
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  font-size: 11px;
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-btn {
  width: 100%;
  padding: 12px;
  background: #FFFFFF;
  color: #000;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preview-btn:hover {
  background: #E5E5EA;
  transform: translateY(-1px);
}

/* ─── Bento Grid Section ─── */
.section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.eyebrow {
  color: var(--accent-apple-blue);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(20px);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.bento-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
}

.card-tag {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.pill {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  color: #D1D1D6;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-apple-blue);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: 10px;
  color: var(--accent-apple-blue-hover);
}

/* ─── Mini Board Graphic ─── */
.caller-graphic {
  display: flex;
  justify-content: center;
}

.mini-board {
  display: flex;
  gap: 12px;
  background: rgba(0, 0, 0, 0.5);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
}

.board-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-board .num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.mini-board .num.hit {
  background: linear-gradient(135deg, #FF9500, #FF3B30);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.4);
}

/* ─── Verified Badge & Code Box ─── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.code-box {
  background: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.code-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
}

.file-path {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.code-box code {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #30D158;
  word-break: break-all;
  line-height: 1.5;
}

/* ─── Statement Section ─── */
.statement-section {
  padding-top: 20px;
}

.statement-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
}

.statement-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.statement-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-item {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.contact-item:hover {
  color: var(--accent-apple-blue);
}

.divider {
  color: var(--text-muted);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  margin-top: 40px;
  background: #000000;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 8px;
}

.footer-motto {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  gap: 60px;
}

.col-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  gap: 20px;
}

.footnote {
  text-align: right;
  max-width: 500px;
}

/* ─── Responsive Styles ─── */
@media (max-width: 820px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-wide {
    grid-template-columns: 1fr;
  }

  .caller-graphic {
    order: -1;
    margin-bottom: 16px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footnote {
    text-align: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 18px;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }
}
