/* NotesCloud — modern, clean, zero-knowledge notes service */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --border: #e6e8ec;
  --border-strong: #d4d8df;
  --text: #0f1729;
  --muted: #5b6472;
  --muted-2: #8a93a3;
  --accent: #059669;
  --accent-d: #047857;
  --accent-soft: #ecfdf5;
  --emerald: #10b981;
  --emerald-soft: #ecfdf5;
  --amber: #f59e0b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.04);
  --shadow: 0 4px 6px -1px rgba(16,24,40,.07), 0 12px 28px -6px rgba(16,24,40,.10);
  --shadow-lg: 0 24px 56px -12px rgba(16,24,40,.22);
  --maxw: 1140px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .92rem; font-weight: 600; line-height: 1;
  padding: .72rem 1.3rem; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-d); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--text); border-color: var(--border); }
.btn-light:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: .92rem 1.7rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 66px; display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.brand .mark { width: 30px; height: 30px; }
.brand b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .18s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: .9rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang-switch button {
  background: transparent; border: none; cursor: pointer;
  font-size: .76rem; font-weight: 600; color: var(--muted-2); padding: .34rem .6rem; transition: all .15s;
}
.lang-switch button.active { background: var(--accent-soft); color: var(--accent); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 5rem 0 3rem; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(16,185,129,.10), transparent 60%),
    radial-gradient(50% 45% at 90% 10%, rgba(16,185,129,.08), transparent 60%),
    linear-gradient(180deg, #fbfbfe 0%, #ffffff 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--accent-soft); color: var(--accent-d);
  font-size: .78rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero .lead { color: var(--muted); font-size: 1.12rem; margin: 1.1rem 0 1.9rem; max-width: 30rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.4rem; margin-top: 1.7rem; color: var(--muted-2); font-size: .82rem; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust svg { color: var(--emerald); }

/* ── App mockup (CSS/SVG device frame) ── */
.mock {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mock-bar i:nth-child(1){ background:#ff5f57 } .mock-bar i:nth-child(2){ background:#febc2e } .mock-bar i:nth-child(3){ background:#28c840 }
.mock-bar .url { margin-left: .6rem; font-size: .72rem; color: var(--muted-2); display: inline-flex; align-items: center; gap: .35rem; }
.mock-body { display: grid; grid-template-columns: 38% 62%; min-height: 320px; }
.mock-side { border-right: 1px solid var(--border); padding: .6rem; background: #fcfcfd; }
.mock-side .ni { padding: .55rem .6rem; border-radius: 8px; margin-bottom: .25rem; }
.mock-side .ni.sel { background: var(--accent-soft); }
.mock-side .ni .t { font-size: .8rem; font-weight: 600; color: var(--text); }
.mock-side .ni .s { font-size: .72rem; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-side .ni.sel .s { color: var(--accent-d); }
.mock-edit { padding: 1.1rem 1.2rem; }
.mock-edit h4 { font-size: 1rem; margin-bottom: .2rem; }
.mock-edit .meta { font-size: .72rem; color: var(--muted-2); margin-bottom: .9rem; display: flex; align-items: center; gap: .4rem; }
.mock-edit .lock { color: var(--emerald); }
.mock-edit .line { height: 9px; border-radius: 5px; background: #eef0f3; margin: .55rem 0; }
.mock-edit .line.w1{width:96%} .mock-edit .line.w2{width:82%} .mock-edit .line.w3{width:90%} .mock-edit .line.w4{width:64%} .mock-edit .line.w5{width:74%}

/* ── Section scaffolding ── */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 38rem; margin: 0 auto 2.6rem; }
.section-head .kicker { color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.02em; margin: .5rem 0 .6rem; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.04rem; }

/* ── Feature cards ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card .ic {
  width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem;
}
.card h3 { font-size: 1.06rem; margin-bottom: .4rem; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .92rem; }

/* ── Security band (dark) ── */
.secure { background: linear-gradient(160deg, #0b1020 0%, #141a30 100%); color: #e7eaf3; }
.secure .secure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.secure .kicker { color: #6ee7b7; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.secure h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: .5rem 0 1rem; letter-spacing: -.02em; font-weight: 800; }
.secure p { color: #aab2c7; font-size: 1.02rem; }
.secure .checks { list-style: none; margin-top: 1.5rem; display: grid; gap: .9rem; }
.secure .checks li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: #cfd5e6; }
.secure .checks svg { color: var(--emerald); flex-shrink: 0; margin-top: 2px; }
.flow {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius);
  padding: 1.6rem; display: grid; gap: 1rem;
}
.flow .step { display: flex; gap: .9rem; align-items: center; }
.flow .step .n {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: rgba(16,185,129,.16); color: #6ee7b7; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.flow .step .tx b { display: block; font-size: .92rem; color: #eef0fb; }
.flow .step .tx span { font-size: .82rem; color: #9aa3bd; }
.flow .arrow { height: 16px; border-left: 2px dashed rgba(255,255,255,.14); margin-left: 16px; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; counter-reset: s; }
.step-card { text-align: center; padding: 1rem; }
.step-card .num {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step-card h3 { font-size: 1.04rem; margin-bottom: .35rem; }
.step-card p { color: var(--muted); font-size: .9rem; }

/* ── Pricing ── */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; align-items: stretch; }
.tier {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.tier.featured .tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px;
}
.tier h3 { font-size: 1.1rem; }
.tier .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; margin: .6rem 0 .2rem; }
.tier .price small { font-size: .85rem; font-weight: 500; color: var(--muted-2); }
.tier .desc { color: var(--muted); font-size: .88rem; min-height: 2.4rem; }
.tier ul { list-style: none; margin: 1.2rem 0 1.6rem; display: grid; gap: .65rem; }
.tier ul li { display: flex; gap: .55rem; font-size: .9rem; color: var(--text); }
.tier ul svg { color: var(--emerald); flex-shrink: 0; }
.tier .btn { margin-top: auto; }

/* ── CTA banner ── */
.cta-band { padding: 4rem 0; }
.cta-inner {
  background: linear-gradient(135deg, var(--accent) 0%, #0d9488 100%); color: #fff;
  border-radius: 20px; padding: 3rem 2rem; text-align: center; box-shadow: var(--shadow);
}
.cta-inner h2 { font-size: clamp(1.5rem,3vw,2.1rem); letter-spacing: -.02em; margin-bottom: .6rem; }
.cta-inner p { color: rgba(255,255,255,.85); margin-bottom: 1.6rem; }
.cta-inner .btn-light { background: #fff; }

/* ── Footer ── */
.site-footer { background: #0b1020; color: #aab2c7; padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid .brand { color: #fff; margin-bottom: .7rem; }
.footer-grid p { font-size: .88rem; color: #8a93a8; max-width: 18rem; }
.footer-col h4 { color: #e7eaf3; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .9rem; }
.footer-col a { display: block; color: #9aa3bd; font-size: .9rem; padding: .25rem 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; font-size: .82rem; color: #6b7488; flex-wrap: wrap; gap: .5rem; }

/* ── Auth pages ── */
.auth-wrap { min-height: calc(100vh - 66px); display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 2.2rem 2rem; }
.auth-card .brand { justify-content: center; margin-bottom: 1.4rem; }
.auth-card h1 { font-size: 1.4rem; text-align: center; letter-spacing: -.02em; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.field input {
  width: 100%; padding: .72rem .85rem; font-size: .95rem; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; margin: .2rem 0 1.2rem; }
.auth-row a { color: var(--accent); font-weight: 600; }
.auth-alt { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 1.3rem; }
.auth-alt a { color: var(--accent); font-weight: 600; }
.auth-note { display: flex; gap: .5rem; align-items: center; justify-content: center; font-size: .78rem; color: var(--muted-2); margin-top: 1.4rem; }
.auth-note svg { color: var(--emerald); }

/* ── In-app shell (app.html) ── */
.app-shell { display: grid; grid-template-columns: 270px 320px 1fr; height: calc(100vh - 66px); }
.app-rail { border-right: 1px solid var(--border); background: #fbfbfd; padding: 1rem .8rem; }
.app-rail .new { width: 100%; margin-bottom: 1rem; }
.app-rail .folders { list-style: none; display: grid; gap: .2rem; }
.app-rail .folders li { display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem; border-radius: 9px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.app-rail .folders li:hover { background: #f0f1f4; }
.app-rail .folders li.active { background: var(--accent-soft); color: var(--accent-d); font-weight: 600; }
.app-rail .folders li .cnt { margin-left: auto; font-size: .76rem; color: var(--muted-2); }
.app-list { border-right: 1px solid var(--border); overflow-y: auto; }
.app-list .lh { padding: 1rem 1rem .6rem; display: flex; justify-content: space-between; align-items: center; }
.app-list .lh h2 { font-size: 1.05rem; }
.app-list .search { padding: 0 1rem 1rem; }
.app-list .search input { width: 100%; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: 9px; font-size: .85rem; }
.app-item { padding: .85rem 1rem; border-bottom: 1px solid var(--border); cursor: pointer; }
.app-item:hover { background: var(--bg-soft); }
.app-item.sel { background: var(--accent-soft); }
.app-item .t { font-weight: 600; font-size: .92rem; }
.app-item .s { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-item .d { color: var(--muted-2); font-size: .74rem; margin-top: .2rem; }
.app-main { padding: 2rem 2.4rem; overflow-y: auto; }
.app-main .doc-head { border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.4rem; }
.app-main .doc-head h1 { font-size: 1.6rem; letter-spacing: -.02em; }
.app-main .doc-head .m { font-size: .8rem; color: var(--muted-2); display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.app-main .doc-head .m .lock { color: var(--emerald); display: inline-flex; align-items: center; gap: .3rem; }
.app-main .doc p { color: #303a4d; margin-bottom: 1rem; }
.app-main .doc h3 { margin: 1.4rem 0 .5rem; font-size: 1.1rem; }
.app-main .doc ul { margin: 0 0 1rem 1.2rem; color: #303a4d; }

/* ── 404 ── */
.nf { text-align: center; padding: 6rem 1.5rem; }
.nf .code { font-size: 6rem; font-weight: 800; color: var(--accent); letter-spacing: -.04em; line-height: 1; }
.nf h2 { font-size: 1.3rem; font-weight: 600; margin: .6rem 0 .4rem; }
.nf p { color: var(--muted); margin-bottom: 1.8rem; }

/* ── Simple content page (about/security/legal) ── */
.doc-page { max-width: 760px; margin: 3.5rem auto; padding: 0 1.5rem; }
.doc-page h1 { font-size: 2rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.doc-page .lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }
.doc-page h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.doc-page p { color: #303a4d; margin-bottom: .9rem; }
.doc-page ul { margin: 0 0 1rem 1.3rem; color: #303a4d; }
.doc-page ul li { margin-bottom: .4rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 1rem; margin: 1.8rem 0; }
.stat-row .s { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.2rem 1rem; text-align: center; }
.stat-row .s b { display: block; font-size: 1.7rem; color: var(--accent); letter-spacing: -.02em; }
.stat-row .s span { font-size: .8rem; color: var(--muted); }

/* ── Modern polish ── */
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-10px) } }
@keyframes auroraShift { 0%{ transform: translate(0,0) scale(1) } 50%{ transform: translate(3%,-3%) scale(1.08) } 100%{ transform: translate(0,0) scale(1) } }
@keyframes pulseDot { 0%,100%{ box-shadow: 0 0 0 0 rgba(16,185,129,.5) } 70%{ box-shadow: 0 0 0 6px rgba(16,185,129,0) } }
@keyframes sweep { 0%{ transform: translateX(-130%) skewX(-18deg) } 60%,100%{ transform: translateX(240%) skewX(-18deg) } }

/* Scroll reveal (classes added by app.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .mock, .hero::before, .hero::after, .secure::before, .cta-inner::after, .eyebrow .dot { animation: none !important; }
}

/* Sticky header gains depth on scroll */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { background: rgba(255,255,255,.9); box-shadow: 0 1px 0 rgba(16,24,40,.05), 0 10px 30px -16px rgba(16,24,40,.25); }

/* Gradient headline + animated aurora */
.hero h1 span { background: linear-gradient(100deg, #059669, #0d9488 52%, #10b981); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero::before { animation: auroraShift 20s ease-in-out infinite; }
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -4%; top: 4%;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(13,148,136,.16), transparent 62%);
  filter: blur(26px); animation: auroraShift 26s ease-in-out infinite reverse;
}
.eyebrow .dot { animation: pulseDot 2.4s infinite; }

/* Subtle dot pattern on alt sections */
.section.alt { position: relative; }
.section.alt::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(16,185,129,.07) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .6;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.section.alt > .container { position: relative; z-index: 1; }

/* Glass cards with gradient-border glow on hover */
.card { background: rgba(255,255,255,.72); backdrop-filter: blur(6px); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(16,185,129,.45), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s;
}
.card:hover::after { opacity: 1; }
.card:hover { box-shadow: 0 22px 46px -22px rgba(16,185,129,.5); }
.card .ic { background: linear-gradient(135deg, #ecfdf5, #d1fae5); box-shadow: inset 0 0 0 1px rgba(16,185,129,.14); transition: transform .25s; }
.card:hover .ic { transform: translateY(-2px) scale(1.04); }

/* Gradient primary buttons */
.btn-primary { background: linear-gradient(135deg, #059669, #0d9488); background-size: 180% 100%; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 26px -12px rgba(16,185,129,.6); }

/* Floating mockup with soft glow */
.mock-wrap { position: relative; }
.mock-wrap::before {
  content: ""; position: absolute; inset: -10% -6%; z-index: -1;
  background: radial-gradient(50% 50% at 52% 42%, rgba(16,185,129,.20), transparent 70%);
  filter: blur(34px);
}
.mock { animation: floaty 7s ease-in-out infinite; }

/* Animated security band */
.secure { position: relative; overflow: hidden; }
.secure::before {
  content: ""; position: absolute; inset: -30%; z-index: 0;
  background:
    radial-gradient(38% 38% at 18% 22%, rgba(13,148,136,.28), transparent 62%),
    radial-gradient(38% 38% at 82% 80%, rgba(16,185,129,.18), transparent 62%);
  animation: auroraShift 22s ease-in-out infinite;
}
.secure .container { position: relative; z-index: 1; }

/* Tiers: hover lift + featured halo */
.tier { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.tier.featured { background: linear-gradient(180deg, #fff, #fbfaff); }
.tier.featured::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, rgba(16,185,129,.55), rgba(13,148,136,.35));
  filter: blur(10px); opacity: .5;
}
.step-card { transition: transform .2s ease; }
.step-card:hover { transform: translateY(-3px); }
.step-card .num { box-shadow: 0 10px 22px -10px rgba(16,185,129,.7); }

/* CTA light sweep */
.cta-inner { position: relative; overflow: hidden; }
.cta-inner::after {
  content: ""; position: absolute; top: 0; left: 0; width: 45%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  animation: sweep 6s ease-in-out infinite;
}
.cta-inner > * { position: relative; z-index: 1; }

/* Nav link underline grow */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; transition: width .22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ── Responsive ── */
@media (max-width: 940px) {
  .hero-grid, .secure .secure-grid { grid-template-columns: 1fr; }
  .hero-grid .mock-wrap { order: -1; }
  .cards, .steps, .tiers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .app-rail, .app-list { display: none; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .cards { grid-template-columns: 1fr; }
}
