/* ============================================================
   Sektor3d.com — site stylesheet
   Dark, modern engine aesthetic. No frameworks.
   ============================================================ */

:root {
  --bg: #0A0E16;
  --bg-alt: #0D1220;
  --surface: #101624;
  --surface-2: #141B2D;
  --border: rgba(255, 255, 255, 0.08);
  --text: #E8ECF4;
  --muted: #98A2B8;
  --violet: #7C5CFF;
  --cyan: #22D3EE;
  --gold: #F2B32B;
  --grad: linear-gradient(100deg, var(--violet), var(--cyan));
  --radius: 14px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.01em; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */

.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 22, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.14em;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.pill {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(124, 92, 255, 0.16); color: #A99CFF;
  border: 1px solid rgba(124, 92, 255, 0.35);
  padding: 2px 7px; border-radius: 999px; vertical-align: 2px;
}

.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: 10px; transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--grad); color: #fff !important;
  box-shadow: 0 6px 24px rgba(96, 116, 255, 0.32);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(96, 116, 255, 0.45); }

.btn-ghost {
  color: var(--text) !important;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

.btn-gold {
  background: var(--gold); color: #191102 !important;
  box-shadow: 0 6px 24px rgba(242, 179, 43, 0.28);
}

.btn-small { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 96px 0 110px; }

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 12% -8%, rgba(124, 92, 255, 0.22), transparent 62%),
    radial-gradient(680px 420px at 95% 12%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: linear-gradient(#000 68%, transparent);
}

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items: center;
}

.badge {
  display: inline-block; font-size: 13px; font-weight: 600; color: #B7C3DC;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}

.hero h1 { font-size: clamp(44px, 6vw, 68px); font-weight: 700; margin-bottom: 22px; }

.lead { color: var(--muted); font-size: 18.5px; max-width: 52ch; margin-bottom: 32px; }
.lead em { color: var(--text); font-style: normal; font-weight: 600; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.center-actions { justify-content: center; }

.hero-facts {
  display: flex; gap: 22px; list-style: none; margin-top: 34px;
  color: var(--muted); font-size: 13.5px; flex-wrap: wrap;
}
.hero-facts li::before { content: "◆ "; color: var(--cyan); font-size: 9px; vertical-align: 2px; }

/* ---------- Editor mock ---------- */

.editor-mock {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden; font-size: 12px;
}

.em-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  color: var(--muted); background: var(--surface-2);
}
.em-titlebar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); display: inline-block; }
.em-titlebar i:first-child { background: #F56A6A; }
.em-titlebar i:nth-child(2) { background: var(--gold); }
.em-titlebar i:nth-child(3) { background: #39D98A; }
.em-titlebar span { margin-left: 8px; }

.em-body { display: grid; grid-template-columns: 108px 1fr 122px; min-height: 264px; }

.em-panel { padding: 12px 12px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.em-inspector { border-right: 0; border-left: 1px solid var(--border); }
.em-panel b { color: var(--text); font-weight: 600; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.em-panel .sel { color: var(--cyan); }

.em-slider { height: 5px; border-radius: 99px; background: rgba(255,255,255,0.09); overflow: hidden; }
.em-slider i { display: block; height: 100%; background: var(--grad); }
.em-slider.gold i { background: var(--gold); }

.em-viewport { position: relative; background: linear-gradient(180deg, #17203A 0%, #0E1526 58%, #0B101C 100%); overflow: hidden; }

.em-grid {
  position: absolute; inset: auto -30% -46% -30%; height: 78%;
  background:
    linear-gradient(rgba(34, 211, 238, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(300px) rotateX(58deg);
  transform-origin: top center;
}

.em-sun {
  position: absolute; top: 18px; right: 26px; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 179, 43, 0.85), rgba(242, 179, 43, 0) 70%);
}

.em-gizmo { position: absolute; left: 50%; top: 52%; }
.em-gizmo span { position: absolute; display: block; height: 2.5px; width: 54px; border-radius: 2px; transform-origin: left center; }
.em-gizmo .gx { background: #F5535C; transform: rotate(12deg); }
.em-gizmo .gy { background: #46E08A; width: 46px; transform: rotate(-90deg); }
.em-gizmo .gz { background: #3E8BFF; transform: rotate(152deg); }

.em-chip {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10, 14, 22, 0.72); border: 1px solid var(--border);
  color: var(--text); padding: 5px 11px; border-radius: 7px; font-weight: 600;
}

.em-status { padding: 9px 14px; border-top: 1px solid var(--border); color: #6FCF97; background: var(--surface-2); }
.em-status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #46E08A; margin-right: 7px; vertical-align: 1px; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin-bottom: 48px; }

.grid.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; transition: transform 0.16s, border-color 0.16s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, 0.42); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.10));
  border: 1px solid rgba(124, 92, 255, 0.28);
}
.card-icon svg {
  width: 24px; height: 24px; fill: none; stroke: #AEB9FF;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card:hover .card-icon svg { stroke: #CFD6FF; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Split / editor-first ---------- */

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }

.lead-small { color: var(--muted); font-size: 17px; margin-bottom: 26px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 15px; color: var(--muted); font-size: 15.5px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.check-list b { color: var(--text); }

.quote-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--violet);
  border-radius: var(--radius); padding: 36px 34px;
}
.quote-card p { font-family: var(--font-display); font-size: 21px; line-height: 1.45; margin-bottom: 18px; }
.quote-card span { color: var(--muted); font-size: 14px; }

/* ---------- Store teaser ---------- */

.store-teaser {
  background:
    radial-gradient(640px 360px at 80% 20%, rgba(242, 179, 43, 0.10), transparent 60%),
    var(--bg-alt);
  border-block: 1px solid var(--border);
}
.store-inner { max-width: 720px; }
.store-teaser h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 20px; }
.store-teaser p { color: var(--muted); margin-bottom: 28px; }
.store-teaser b { color: var(--gold); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 56px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.footer-grid b { display: block; margin-bottom: 14px; font-family: var(--font-display); font-size: 14.5px; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; font-size: 14.5px; margin-bottom: 9px; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 30ch; }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-block: 20px;
  color: var(--muted); font-size: 13.5px;
}

/* ---------- Store page ---------- */

.page-hero { padding: 120px 0 80px; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 18px; }
.page-hero .lead { margin: 0 auto 30px; }

.plan-card {
  max-width: 560px; margin: 0 auto; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 38px 36px;
}
.plan-card h3 { font-size: 22px; margin-bottom: 6px; }
.plan-price { font-family: var(--font-display); font-size: 40px; color: var(--gold); margin-bottom: 22px; }
.plan-price small { font-size: 15px; color: var(--muted); font-family: var(--font-body); }

/* ---------- Screenshots (3D mockups) ---------- */

.media-stage { perspective: 2200px; overflow: visible; margin-bottom: 16px; }

.media-banner { margin: 0; }
.media-banner img, .media-grid img {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* signature angled hero mockup — straightens on hover */
.media-banner.tilt img {
  transform: rotateX(6deg) rotateY(-12deg) rotate(0.6deg) scale(0.97);
  transform-origin: center;
  box-shadow: -34px 44px 90px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s ease;
}
.media-banner.tilt:hover img {
  transform: rotateX(0) rotateY(0) rotate(0) scale(1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.media-cap { color: var(--muted); font-size: 13.5px; text-align: center; margin: 0 0 44px; }

.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; perspective: 2000px; }
.media-grid figure { margin: 0; }
.media-grid figure img {
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.media-grid .tilt-left img  { transform: rotateY(7deg)  scale(0.97); transform-origin: left center; }
.media-grid .tilt-right img { transform: rotateY(-7deg) scale(0.97); transform-origin: right center; }
.media-grid figure:hover img { transform: rotateY(0) scale(1); }
.media-grid figcaption { color: var(--muted); font-size: 13.5px; margin-top: 12px; text-align: center; }

.media-note { color: var(--muted); font-size: 14px; text-align: center; margin-top: 34px; }
.media-note code {
  background: rgba(124, 92, 255, 0.14); border: 1px solid rgba(124, 92, 255, 0.3);
  padding: 2px 7px; border-radius: 6px; font-size: 13px; color: #C9BFFF;
}

@media (max-width: 640px) {
  .media-grid { grid-template-columns: 1fr; }
  /* flatten all tilts on mobile so nothing clips */
  .media-banner.tilt img,
  .media-grid .tilt-left img,
  .media-grid .tilt-right img { transform: none; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .editor-mock { max-width: 560px; }
  .grid.features-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 16px 28px 22px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 9px 0; font-size: 16px; }
  .grid.features-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 68px 0; }
}
