:root {
  --primary: #1C1917;
  --secondary: #44403C;
  --cta: #CA8A04;
  --cta-hover: #E7A82A;
  --bg: #FAFAF9;
  --text: #0C0A09;
  --muted: #57534E;
  --border: #E7E5E4;
  --success: #16A34A;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(12,10,9,0.05);
  --shadow-md: 0 10px 30px -12px rgba(12,10,9,0.2);
  --shadow-lg: 0 24px 60px -20px rgba(12,10,9,0.35);
  --radius: 1rem;
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }

.gold { color: var(--cta); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(250,250,249,0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.brand .logo {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cta), #a06a02);
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.55rem 1.15rem;
  border-radius: 0.7rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--secondary); }
.nav-burger {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text); padding: 0.3rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 20% 10%, rgba(202,138,4,0.18), transparent 60%),
    radial-gradient(50% 45% at 85% 25%, rgba(28,25,23,0.10), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 10px 25px -10px rgba(202,138,4,0.7); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--secondary); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); border-color: var(--secondary); }
.btn svg { width: 1.15rem; height: 1.15rem; }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; }
.stat b { font-size: 1.5rem; display: block; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* Hero visual card */
.hero-visual { position: relative; display: flex; justify-content: center; }
.window-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(28,25,23,0.12);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.03);
  border-bottom: 1px solid var(--border);
}
.window-bar .dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.window-bar .dot.r { background: #F87171; }
.window-bar .dot.y { background: #FBBF24; }
.window-bar .dot.g { background: #34D399; }
.window-body { padding: 1.5rem; }
.window-app { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.window-app .icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700; color: #fff;
  box-shadow: var(--shadow-md);
}
.window-app h3 { font-size: 1.1rem; }
.window-app p { color: var(--muted); font-size: 0.85rem; }
.window-dl {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
}
.window-dl .name { font-weight: 600; font-size: 0.92rem; }
.window-dl .size { color: var(--muted); font-size: 0.78rem; }
.window-dl .go {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--cta); color: #fff;
  display: grid; place-items: center;
}
.floating-chip {
  position: absolute;
  display: flex; align-items: center; gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem; font-weight: 600;
}
.floating-chip.a { top: -12%; left: -6%; }
.floating-chip.b { bottom: 6%; right: -4%; }
.floating-chip .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head .eyebrow {
  color: var(--cta); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.center { margin-inline: auto; text-align: center; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(202,138,4,0.4); }
.feature .ficon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(202,138,4,0.12);
  color: var(--cta);
  margin-bottom: 1.25rem;
}
.feature .ficon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Apps grid */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(202,138,4,0.4); }
.app-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
}
.app-card .tag {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: rgba(202,138,4,0.12); color: var(--cta);
  font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.app-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.app-card .desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.1rem; }
.app-card .meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.app-card .meta .dl { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--cta); font-weight: 600; }
.app-card .meta .dl svg { width: 16px; height: 16px; }

/* Strip */
.strip {
  background: var(--primary);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.strip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 80% 20%, rgba(202,138,4,0.35), transparent 60%);
}
.strip .inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.strip h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
.strip p { opacity: 0.85; max-width: 30rem; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review .stars { color: var(--cta); letter-spacing: 2px; margin-bottom: 0.75rem; font-size: 0.95rem; }
.review p { color: var(--muted); margin-bottom: 1.1rem; font-size: 0.95rem; }
.review .who { display: flex; align-items: center; gap: 0.75rem; }
.review .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700;
}
.review .who b { display: block; font-size: 0.92rem; }
.review .who span { color: var(--muted); font-size: 0.82rem; }

/* CTA section */
.cta-banner {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: linear-gradient(135deg, var(--cta), #a06a02);
  border-radius: 1.5rem;
  color: #fff;
}
.cta-banner h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.92; font-size: 1.1rem; margin-bottom: 1.75rem; }
.cta-banner .btn-dark { box-shadow: 0 12px 30px -10px rgba(0,0,0,0.4); }

/* Footer */
footer { background: var(--primary); color: #EDE9E9; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { color: #fff; margin-bottom: 1.1rem; font-size: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 0.6rem; }
.footer-grid a { color: #A8A29E; font-size: 0.92rem; transition: color 0.2s; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: #A8A29E; font-size: 0.92rem; max-width: 18rem; margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem; padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  color: #A8A29E; font-size: 0.85rem; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: #A8A29E; margin-left: 1.25rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- MS Office page ---------- */
.app-hero { padding: 3.5rem 0 4rem; }
.breadcrumb { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.breadcrumb a { color: var(--cta); }
.breadcrumb a:hover { text-decoration: underline; }
.app-header { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 1.5rem; flex-wrap: wrap; }
.app-icon-lg {
  width: 88px; height: 88px; border-radius: 20px;
  display: grid; place-items: center;
  color: #fff; font-size: 2rem; font-weight: 700;
  box-shadow: var(--shadow-lg); flex-shrink: 0;
}
.app-title h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.4rem; }
.app-title .sub { color: var(--muted); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.app-title .sub .star { color: var(--cta); }
.app-title .sub span { font-size: 0.95rem; }
.pills { display: flex; gap: 0.6rem; margin: 1rem 0 0; flex-wrap: wrap; }
.pill { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); }

.app-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.app-content .card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; margin-bottom: 1.5rem;
}
.app-content h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.app-content p { color: var(--muted); margin-bottom: 1rem; }
.app-content ul { margin: 0 0 1rem 1.2rem; color: var(--muted); }
.app-content ul li { margin-bottom: 0.5rem; }
.feature-list li { list-style: none; position: relative; padding-left: 1.75rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: rgba(202,138,4,0.15); color: var(--cta);
  display: grid; place-items: center;
}
.feature-list li svg { position: absolute; left: 0.22rem; top: 0.42rem; width: 0.6rem; height: 0.6rem; color: var(--cta); }

/* Download card / sticky */
.download-wrap { position: sticky; top: 6.5rem; }
.download-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.download-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.download-card .version-note { color: #A8A29E; font-size: 0.9rem; margin-bottom: 1.5rem; }
.info-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
.info-row span { color: #A8A29E; }
.info-row b { font-weight: 600; }
.info-rows { margin-bottom: 1.5rem; }
.download-btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--cta); color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.8rem; border: none;
  font-weight: 700; font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 12px 30px -10px rgba(202,138,4,0.7);
}
.download-btn:hover { background: var(--cta-hover); }
.download-btn:active { transform: translateY(1px); }
.download-btn svg { width: 1.2rem; height: 1.2rem; }
.download-safe {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.6rem; margin-top: 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.8rem 1rem; border-radius: 0.8rem;
  font-size: 0.85rem; color: #D6D3D1;
}

@media (prefers-reduced-motion: no-preference) {
  .floating-chip.a { animation: float 6s ease-in-out infinite; }
  .floating-chip.b { animation: float 6s ease-in-out infinite 1.5s; }
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid, .apps-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { order: 2; }
  .app-layout { grid-template-columns: 1fr; }
  .download-wrap { position: static; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250,250,249,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
  }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}
@media (max-width: 600px) {
  .features-grid, .apps-grid, .reviews-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-chip.a { left: -2%; }
  .floating-chip.b { right: -2%; }
}

/* ---------- Access Gate (members only) ---------- */
.gate-locked { overflow: hidden; height: 100vh; }
.gate-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 1.5rem;
  background:
    radial-gradient(60% 55% at 20% 10%, rgba(202,138,4,0.25), transparent 60%),
    radial-gradient(50% 45% at 85% 25%, rgba(28,25,23,0.25), transparent 60%),
    linear-gradient(160deg, #1C1917, #0C0A09);
}
.gate-card {
  width: 100%; max-width: 400px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
}
.gate-lock {
  width: 64px; height: 64px; margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--cta), #a06a02);
  border-radius: 18px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(202,138,4,0.7);
}
.gate-title { font-size: 1.55rem; font-weight: 700; margin-bottom: 0.5rem; }
.gate-sub { color: #A8A29E; font-size: 0.95rem; margin-bottom: 1.75rem; }
.gate-form { display: flex; flex-direction: column; gap: 0.9rem; }
.gate-input {
  padding: 0.95rem 1.15rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 0.3em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.gate-input::placeholder { letter-spacing: 0.05em; color: #78716C; }
.gate-input:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(202,138,4,0.25);
}
.gate-submit {
  padding: 0.95rem;
  border-radius: 0.8rem;
  border: none;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
}
.gate-submit:hover { background: var(--cta-hover); }
.gate-submit:active { transform: translateY(1px); }
.gate-submit.gate-error-state { animation: gate-shake 0.4s; }
.gate-error { color: #FCA5A5; font-size: 0.88rem; margin-top: 0.75rem; }
@keyframes gate-shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.gate-opening {
  animation: gate-fade 0.5s forwards;
}
@keyframes gate-fade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .gate-opening { animation-duration: 0.01ms; }
  .gate-submit.gate-error-state { animation: none; }
}
