/* ============================================================
   Yong38 — Landing & Sign  ·  Light "Apple-like" theme
   ============================================================ */

:root {
  --bg:        #f5f5f7;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #fbfbfd;
  --text:      #1d1d1f;
  --text-2:    #6e6e73;
  --text-3:    #a1a1a6;
  --border:    rgba(0,0,0,.08);
  --border-2:  rgba(0,0,0,.12);
  --accent:    #0071e3;
  --accent-2:  #00c2a8;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0,113,227,.10);
  --green:     #34c759;
  --orange:    #ff9f0a;
  --red:       #ff3b30;
  --gold:      #b8860b;
  --radius:    20px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.05);
  --shadow:    0 6px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.10);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; gap: 20px;
}
.logo, .footer-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 800; letter-spacing: -.4px;
  color: var(--text); text-decoration: none;
}
.logo strong, .footer-logo strong { font-weight: 800; }
.logo-box {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; box-shadow: 0 4px 12px rgba(0,113,227,.28);
}
.logo-box.small { width: 28px; height: 28px; font-size: 15px; }

.nav-links {
  display: flex; align-items: center; gap: 26px; margin: 0 auto;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  font-size: 14px; font-weight: 600; color: var(--text);
  text-decoration: none; padding: 8px 14px; border-radius: 980px;
  transition: background .15s;
}
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.btn-nav-cta {
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--accent); text-decoration: none;
  padding: 9px 18px; border-radius: 980px;
  transition: background .15s, transform .15s;
}
.btn-nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* nav user (logged in) */
.nav-user, .nav-user-wrap {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; position: relative; padding: 5px 8px; border-radius: 980px;
}
.nav-user-wrap:hover { background: rgba(0,0,0,.04); }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  min-width: 190px; padding: 6px; display: none; z-index: 200;
}
.nav-user-dropdown.open { display: block; }
.nav-user-dropdown a {
  display: block; padding: 9px 12px; font-size: 13px; font-weight: 500;
  color: var(--text-2); text-decoration: none; border-radius: 9px;
}
.nav-user-dropdown a:hover { background: rgba(0,0,0,.05); color: var(--text); }

/* hamburger / mobile menu */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 10px 24px 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 6px 0; }
.mobile-menu-cta { color: var(--accent) !important; font-weight: 700 !important; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 24px 84px; text-align: center;
}
.hero-glow, .hero-grid { display: none; } /* drop dark-theme decorations */
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(0,113,227,.18);
  border-radius: 980px; padding: 7px 16px;
  font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,199,89,.18); }
.hero-title {
  font-size: clamp(34px, 6vw, 60px); font-weight: 800;
  line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px); color: var(--text-2);
  max-width: 600px; margin: 0 auto 36px; line-height: 1.55; font-weight: 400;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-cta-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 600; text-decoration: none;
  padding: 15px 30px; border-radius: 980px; border: none; cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(0,113,227,.3);
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-cta-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,113,227,.36); }
.btn-cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--text);
  font-size: 16px; font-weight: 600; text-decoration: none;
  padding: 15px 28px; border-radius: 980px; border: 1px solid var(--border-2);
  transition: background .18s, transform .18s;
}
.btn-cta-ghost:hover { background: rgba(0,0,0,.03); transform: translateY(-2px); }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-2); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-pill {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 5px 14px; border-radius: 980px; margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.section-sub { font-size: 17px; color: var(--text-2); line-height: 1.55; }

/* features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-2); }
.feature-glow { display: none; }
.feature-icon-wrap {
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px; border: 1px solid var(--border);
  background: var(--surface-2) !important; color: var(--text);
}
.feature-title { font-size: 18px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 8px; }
.feature-desc { font-size: 14.5px; color: var(--text-2); line-height: 1.6; }

/* steps */
.steps-row { display: flex; align-items: stretch; justify-content: center; gap: 14px; flex-wrap: wrap; }
.step-card {
  flex: 1; min-width: 230px; max-width: 320px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.step-num { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 1px; margin-bottom: 14px; }
.step-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: var(--accent-soft);
}
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.step-arrow { display: flex; align-items: center; font-size: 24px; color: var(--text-3); }

/* CTA */
.section-cta { position: relative; overflow: hidden; padding: 84px 24px; text-align: center; }
.cta-glow { display: none; }
.cta-inner {
  position: relative; z-index: 2; max-width: 760px; margin: 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 28px; padding: 56px 32px; color: #fff;
  box-shadow: 0 24px 60px rgba(0,113,227,.28);
}
.cta-badge {
  display: inline-block; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.18); color: #fff;
  padding: 6px 16px; border-radius: 980px; margin-bottom: 18px;
}
.cta-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 12px; color: #fff; }
.cta-sub { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 30px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-inner .btn-cta-primary { background: #fff; color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cta-inner .btn-cta-primary:hover { background: #fff; transform: translateY(-2px); }
.cta-inner .btn-cta-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.cta-inner .btn-cta-ghost:hover { background: rgba(255,255,255,.22); }

/* ── Footer ────────────────────────────────────────────── */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 44px 24px; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-divider { height: 1px; background: var(--border); margin: 24px 0; }
.footer-copy { font-size: 13px; color: var(--text-3); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
}
