/* ===== EssonieTech — Dark theme ===== */
:root {
  --bg: #0d1220;
  --bg-alt: #111829;
  --surface: #172036;
  --surface-2: #1d2945;
  --border: #26324f;
  --text: #e8ebf5;
  --navy: #e8ebf5;          /* heading colour (kept for page compatibility) */
  --muted: #9aa5c2;
  --accent: #8b7cff;
  --accent-2: #ffb86b;
  --accent-ink: #0d1220;
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --radius: 14px;
  --nav-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(20px, 5vw, 64px); background: rgba(13,18,32,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.nav-brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { background: var(--accent); color: var(--accent-ink); padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; transition: background .2s; }
.nav-cta:hover { background: #a094ff; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99; flex-direction: column; padding: 12px 20px 20px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 4px; color: var(--muted); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--text); }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) clamp(20px, 5vw, 64px) 64px; background: radial-gradient(900px 500px at 85% 10%, rgba(139,124,255,.16), transparent 60%), var(--bg); }
.hero-inner { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hero-tag { display: inline-block; margin-bottom: 22px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--accent-2); font-family: var(--mono); font-size: .8rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 24px; max-width: 54ch; color: var(--muted); font-size: 1.1rem; }
.hero-btns { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn-primary, .btn-ghost { display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #a094ff; }
.btn-ghost { border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.hero-card::before { content: ""; display: block; width: 10px; height: 10px; margin-bottom: 22px; border-radius: 50%; background: #ff6b6b; box-shadow: 18px 0 0 #ffb86b, 36px 0 0 #5ad8a6; }
.code-lines { font-family: var(--mono); font-size: .95rem; line-height: 1.9; color: var(--muted); }
.kw { color: var(--accent); } .fn { color: var(--accent-2); } .str { color: #5ad8a6; }

/* SECTIONS */
section { padding: 96px clamp(20px, 5vw, 64px); }
#about, #contact { background: var(--bg-alt); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-label { display: inline-block; margin-bottom: 14px; color: var(--accent-2); font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; line-height: 1.15; }
.section-lead, .section-subtitle { margin-top: 18px; max-width: 70ch; color: var(--muted); font-size: 1.05rem; }
.about-headline { max-width: 26ch; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.about-grid-new { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.about-block { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.about-block h3 { margin-bottom: 10px; font-size: 1.1rem; color: var(--accent); }
.about-block p { color: var(--muted); font-size: .97rem; }
.apps-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.app-card { padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, background .2s; }
.app-card:hover { border-color: var(--accent); background: var(--surface-2); }
.app-card h3 { font-size: 1.2rem; }
.app-card p { color: var(--muted); }
.contact-cards { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 760px; }
.contact-card { display: block; padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, background .2s; }
.contact-card:hover { border-color: var(--accent); background: var(--surface-2); }
.contact-card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: .95rem; }

/* FOOTER */
footer { padding: 40px clamp(20px, 5vw, 64px); background: #0a0e19; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.footer-brand-text { font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: .85rem; }

/* PRIVACY / TERMS PAGES */
.page-hero { padding: calc(var(--nav-h) + 56px) clamp(20px, 5vw, 64px) 56px; text-align: center; background: radial-gradient(700px 300px at 50% 0%, rgba(139,124,255,.18), transparent 70%), var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; }
.pp-wrap { max-width: 780px; margin: 0 auto; padding: 60px 5vw 80px; }
.pp-section { margin-bottom: 2rem; }
.pp-section h2 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.pp-section p { font-size: .95rem; color: var(--muted); line-height: 1.8; margin-bottom: .4rem; }
.pp-section a { color: var(--accent); }
.pp-section ul { margin: .4rem 0; display: flex; flex-direction: column; gap: .3rem; }
.pp-section ul li { display: flex; align-items: flex-start; gap: .7rem; font-size: .93rem; color: var(--muted); line-height: 1.7; }
.pp-section ul li::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin-top: .62rem; flex-shrink: 0; }
.pp-divider { height: 1px; background: var(--border); margin: 1.6rem 0; }
.pp-highlight { background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: .9rem 1.2rem; margin-bottom: 1.8rem; }
.pp-highlight p { font-size: .93rem; color: var(--text); line-height: 1.7; }
.pp-contact-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem 1.5rem; margin-top: .8rem; }
.pp-contact-box ul { gap: .5rem; }
.pp-contact-box ul li::before { display: none; }
.pp-contact-box a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 72px 20px; }
}