:root {
  --bg: #080b0e;
  --bg-soft: #0d1116;
  --panel: #10151b;
  --panel-2: #131922;
  --text: #f4f4f2;
  --muted: #a9afb8;
  --border: rgba(216, 168, 78, 0.2);
  --gold: #d8a84e;
  --gold-2: #f0cc82;
  --cyan: #20c7f3;
  --violet: #8153ff;
  --pink: #f337ba;
  --green: #64c64c;
  --radius: 22px;
  --shadow: 0 18px 60px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 10%, rgba(216,168,78,.08), transparent 25%),
    linear-gradient(180deg, #07090c 0%, #0a0e12 52%, #07090c 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(7,9,12,.82);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; border: 1px solid var(--border); }
.brand-copy strong { display: block; letter-spacing: .06em; }
.brand-copy span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 24px; color: #d9dce1; font-size: 14px; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-2); }
.menu-toggle { display: none; background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 9px 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border); font-weight: 600; font-size: 14px; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #111; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 10px 30px rgba(216,168,78,.14); }
.btn-secondary { background: rgba(255,255,255,.025); color: var(--text); }
.btn-disabled { opacity: .58; cursor: not-allowed; pointer-events: none; }

.hero { padding: 72px 0 54px; border-bottom: 1px solid rgba(255,255,255,.06); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 54px; }
.eyebrow { color: var(--gold-2); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
h1 { margin: 14px 0 18px; font-size: clamp(45px, 7vw, 84px); line-height: .96; letter-spacing: -.045em; }
.gold { color: var(--gold-2); }
.lead { max-width: 660px; color: #d1d5db; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; }
.hero-copy p:not(.lead) { color: var(--muted); line-height: 1.75; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-logo-wrap { width: min(100%, 470px); padding: 18px; border-radius: 42px; background: radial-gradient(circle at 50% 20%, rgba(216,168,78,.11), rgba(255,255,255,.015) 55%, transparent 70%); }
.hero-logo { border-radius: 32px; box-shadow: var(--shadow); border: 1px solid var(--border); }

.traits { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trait { padding: 16px; border-top: 1px solid rgba(216,168,78,.32); }
.trait strong { display: block; margin-bottom: 6px; }
.trait span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.section { padding: 68px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 46px); }
.section-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { position: relative; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 22px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.016)); min-height: 100%; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.project-card:hover { border-color: rgba(216,168,78,.3); }
.project-logo { width: 150px; aspect-ratio: 1; object-fit: cover; border-radius: 30px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.08); }
.project-card h3 { font-size: 24px; margin: 0 0 9px; }
.project-card p { color: var(--muted); line-height: 1.65; min-height: 82px; }
.badge { position: absolute; right: 18px; top: 18px; border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 700; }
.badge-live { color: #bff3b4; background: rgba(80,170,67,.16); border: 1px solid rgba(100,198,76,.25); }
.badge-dev { color: #f5b8ea; background: rgba(243,55,186,.12); border: 1px solid rgba(243,55,186,.2); }
.feature-list { list-style: none; margin: 20px 0 26px; padding: 0; color: #d8dbe1; }
.feature-list li { display: flex; gap: 10px; margin: 11px 0; font-size: 14px; }
.feature-list li::before { content: "✓"; color: var(--gold-2); font-weight: 800; }
.project-card .btn { width: 100%; }

.about-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.018); }
.about-panel { padding: 28px; }
.about-panel + .about-panel { border-left: 1px solid rgba(255,255,255,.08); }
.about-panel h3 { margin-top: 0; }
.about-panel p, .about-panel li { color: var(--muted); line-height: 1.65; }
.about-panel ul { padding-left: 18px; }

.project-page { padding: 64px 0 74px; }
.project-hero { display: grid; grid-template-columns: 230px 1fr; gap: 36px; align-items: center; padding: 30px; border: 1px solid rgba(255,255,255,.08); border-radius: 28px; background: rgba(255,255,255,.022); }
.project-hero img { width: 230px; border-radius: 44px; border: 1px solid rgba(255,255,255,.08); }
.project-hero h1 { font-size: clamp(40px, 6vw, 70px); margin-bottom: 14px; }
.project-hero .status-line { color: var(--gold-2); font-size: 14px; font-weight: 700; }
.content-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; margin-top: 24px; }
.content-box { border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 26px; background: rgba(255,255,255,.018); }
.content-box h2 { margin-top: 0; }
.content-box p, .content-box li { color: var(--muted); line-height: 1.7; }
.notice { border-left: 3px solid var(--gold); background: rgba(216,168,78,.06); padding: 16px 18px; border-radius: 0 14px 14px 0; color: #e8e2d6; }

footer { padding: 38px 0 26px; border-top: 1px solid rgba(255,255,255,.07); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-title { color: var(--text); margin-bottom: 10px; font-weight: 700; }
.footer-links { display: grid; gap: 8px; font-size: 14px; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-logo-wrap { width: min(76vw, 390px); }
  .projects { grid-template-columns: 1fr 1fr; }
  .projects .project-card:last-child { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-panel + .about-panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .project-hero { grid-template-columns: 180px 1fr; }
  .project-hero img { width: 180px; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 24px, 1180px); }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 78px; left: 12px; right: 12px; padding: 18px; background: #0b0f13; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .navbar > .btn { display: none; }
  .hero { padding-top: 34px; }
  .hero-grid { gap: 28px; }
  .traits { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .projects .project-card:last-child { grid-column: auto; }
  .project-card p { min-height: auto; }
  .project-hero { grid-template-columns: 1fr; text-align: center; }
  .project-hero img { width: min(220px, 70vw); margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* N2L Studio Android */
.android-project-page .project-hero p:not(.lead) { color: var(--muted); line-height: 1.7; max-width: 760px; }
.android-hero { background: radial-gradient(circle at 8% 15%, rgba(32,199,243,.08), transparent 28%), radial-gradient(circle at 88% 80%, rgba(243,55,186,.07), transparent 30%), rgba(255,255,255,.022); }
.app-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.app-pills span { padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.026); color: #d9dce1; font-size: 13px; }
.project-section { padding-top: 56px; }
.left-head { text-align: left; max-width: 800px; margin: 0 0 24px; }
.left-head h2 { margin-top: 8px; }
.feature-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-box { min-height: 100%; }
.feature-box h3 { margin: 11px 0 8px; font-size: 18px; }
.feature-box p { margin: 0; font-size: 14px; }
.feature-icon { font-size: 27px; }
.mini-badge { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 999px; font-size: 11px; vertical-align: middle; color: #f5b8ea; background: rgba(243,55,186,.12); border: 1px solid rgba(243,55,186,.2); }
.android-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.screenshot-box { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; background: rgba(255,255,255,.018); }
.screenshot-box img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.screenshot-box figcaption { padding: 14px 16px 16px; color: var(--muted); font-size: 14px; }
.android-info-grid { margin-top: 0; }
.download-actions { margin-top: 18px; }
.support-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px; margin-top: 56px; border: 1px solid rgba(216,168,78,.18); border-radius: 22px; background: rgba(216,168,78,.035); }
.support-strip h2 { margin: 8px 0 9px; }
.support-strip p { margin: 0; color: var(--muted); line-height: 1.65; max-width: 760px; }

@media (max-width: 1000px) {
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .feature-cards, .android-gallery { grid-template-columns: 1fr; }
  .support-strip { align-items: stretch; flex-direction: column; }
  .support-strip .btn { width: 100%; }
}

/* N2L Studio Lite */
.lite-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lite-gallery .screenshot-box:first-child { grid-column: 1 / -1; }
.lite-gallery .screenshot-box img { aspect-ratio: 16 / 8.6; object-fit: cover; object-position: top left; }
@media (max-width: 700px) {
  .lite-gallery { grid-template-columns: 1fr; }
  .lite-gallery .screenshot-box:first-child { grid-column: auto; }
}
