/* IndiaGuns.com — 2027 design system. 8px scale, 12-col / 1200px, radius 16. */
:root {
  --bg: #0B0C0E;
  --bg-2: #101114;
  --card: #15171B;
  --card-2: #1B1E24;
  --border: #24272D;
  --border-2: #32363E;
  --text: #F5F6F7;
  --muted: #A9AFB8;
  --muted-2: #7E8590;
  --accent: #F2A93B;
  --accent-2: #C9892E;
  --accent-soft: rgba(242, 169, 59, 0.14);
  --green: #3D8B6E;
  --green-soft: rgba(61, 139, 110, 0.16);
  --saffron: #E08A2A;
  --danger: #D97A6C;
  --overlay: rgba(6, 7, 8, 0.72);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --container: 1200px;
  --gutter: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Syne", var(--font-sans);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #F6F3EE;
  --bg-2: #EFEBE3;
  --card: #FFFcf7;
  --card-2: #F3EEE6;
  --border: #E2DCD2;
  --border-2: #C9C1B4;
  --text: #16181C;
  --muted: #5C6370;
  --muted-2: #7A8190;
  --accent: #B47416;
  --accent-2: #8E5A10;
  --accent-soft: rgba(180, 116, 22, 0.12);
  --green: #1F6B52;
  --green-soft: rgba(31, 107, 82, 0.12);
  --saffron: #B15F12;
  --danger: #A94438;
  --overlay: rgba(22, 18, 12, 0.55);
  --shadow: 0 20px 48px rgba(40, 28, 10, 0.12);
}

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

html, body { min-height: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01" on, "cv11" on;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: 0 0 0.4em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 16px; color: var(--text); }
h1 { font-size: clamp(40px, 6vw, 80px); }
h2 { font-size: clamp(28px, 3.2vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }

.skip {
  position: absolute; left: 16px; top: -80px;
  background: var(--accent); color: #111; padding: 12px 16px;
  border-radius: 8px; z-index: 100; font-weight: 600;
}
.skip:focus { top: 16px; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 40px)); }
}

/* Subtle page texture */
.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(242, 169, 59, 0.07), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(61, 139, 110, 0.05), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
}
.page-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.page-bg::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  height: 100%;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--accent); }
.logo span { color: var(--accent); }

.nav {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  min-height: 48px;
  display: inline-flex; align-items: center;
  border-radius: 10px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--card) 80%, transparent); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 10px; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s;
}
.btn:focus-visible, .nav a:focus-visible, .icon-btn:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #16120A; }
.btn-primary:hover { background: #ffbf5a; color: #16120A; }
[data-theme="light"] .btn-primary:hover { background: #9a6410; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--card); color: var(--text); border-color: var(--muted-2); }
.btn-block { width: 100%; }
.icon-btn {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--muted-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.menu-toggle { display: none; }

/* Contain long museum-object photos */
.card-media img.object-contain {
  object-fit: contain;
  background: #d5d5d5;
}

.nav-discord { display: none; }

@media (max-width: 960px) {
  .nav-discord { display: flex; }
  .header-actions > .btn { display: none; }
  .header-inner { gap: 8px; }
  .logo { letter-spacing: 0.1em; font-size: 13px; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    align-items: stretch;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav.is-open a { min-height: 48px; padding: 12px 16px; font-size: 16px; }
  .menu-toggle { display: inline-flex; }
  .header-inner { grid-template-columns: auto 1fr auto; width: min(var(--container), calc(100% - 40px)); }
  .btn-join-label { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: stretch;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,12,14,0.94) 0%, rgba(11,12,14,0.78) 42%, rgba(11,12,14,0.28) 100%),
    linear-gradient(180deg, rgba(11,12,14,0.2) 0%, rgba(11,12,14,0.75) 100%);
}
[data-theme="light"] .hero-media::after {
  background:
    linear-gradient(90deg, rgba(12,10,8,0.88) 0%, rgba(12,10,8,0.64) 46%, rgba(12,10,8,0.25) 100%),
    linear-gradient(180deg, rgba(12,10,8,0.1) 0%, rgba(12,10,8,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 80px;
  max-width: 760px;
  margin-left: max(24px, calc((100% - var(--container)) / 2));
  color: #F5F6F7;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.kicker::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
.hero h1 { color: #F5F6F7; margin-bottom: 24px; max-width: 14ch; }
.hero .lede {
  font-size: 18px; line-height: 1.6; color: #C8CDD3;
  max-width: 46ch; margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note {
  margin-top: 32px;
  font-size: 13px; color: #9AA1AA;
  max-width: 48ch;
}

/* Trust */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 60%, transparent);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px 0;
}
.trust-item { text-align: center; }
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.trust-item span { color: var(--muted); font-size: 13px; }
.trust-item a { color: inherit; text-decoration: none; display: block; padding: 8px; border-radius: 12px; }
.trust-item a:hover { color: var(--accent); }

/* Sections */
.section { padding: 96px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 12px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: flex; flex-direction: column;
  min-height: 100%;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
a.card:hover { border-color: var(--accent-2); transform: translateY(-2px); color: inherit; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--card-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); font-size: 15px; margin: 0; }
.card-meta {
  margin-top: auto; padding-top: 16px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.card.feature .card-media { aspect-ratio: 16 / 9; }

/* Safety */
.rules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.rule {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 100%;
}
.rule-num {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 16px;
}
.rule h3 { font-size: 20px; margin-bottom: 12px; }
.rule p { color: var(--muted); font-size: 15px; }

.prose-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--muted);
}
.prose-card p { margin-bottom: 1em; }
.prose-card strong { color: var(--text); font-weight: 600; }

/* Community */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.platform {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.platform:hover { border-color: var(--accent-2); transform: translateY(-2px); color: inherit; }
.platform-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-family: var(--font-display);
}
.platform h3 { margin: 8px 0 0; }
.platform p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.platform .card-meta { padding-top: 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 24px;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 16px; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 12px; height: 12px; flex: 0 0 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.2s var(--ease);
  margin-top: -4px;
}
.faq-list details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-answer { color: var(--muted); padding: 0 0 24px; max-width: 72ch; }
.faq-answer a { color: var(--accent); }

/* About split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
.split-copy {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.split-copy p { color: var(--muted); }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.quote {
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Page hero (inner pages) */
.page-hero { padding: 80px 0 24px; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { color: var(--muted); font-size: 18px; max-width: 54ch; }

.stack { display: flex; flex-direction: column; gap: 24px; }
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.panel h2, .panel h3 { margin-top: 0; }
.panel p, .panel li { color: var(--muted); }
.panel a { color: var(--accent); }
.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding: 16px 16px 16px 56px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 0 0 8px;
  background: var(--bg-2);
  color: var(--muted);
}
.checklist li::before {
  content: attr(data-n);
  position: absolute; left: 16px; top: 16px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  color: var(--text);
  margin: 16px 0 0;
}
.callout.caution { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--card)); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { display: inline-block; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 36ch; font-size: 14px; }
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 16px; font-weight: 600;
}
.footer-col a {
  display: flex; align-items: center;
  min-height: 40px; color: var(--text); text-decoration: none; font-size: 14px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--muted-2);
  font-size: 13px;
}
.footer-bottom a { color: var(--muted); }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(8px);
}
.modal-sheet {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90svh, 800px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.modal-body { padding: 32px 32px 16px; overflow: auto; }
.modal-body h2 { font-size: 28px; margin-bottom: 16px; }
.modal-body p { color: var(--muted); }
.modal-actions {
  padding: 16px 32px 24px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
body.modal-open { overflow: hidden; }

/* 404 */
.page-404 { min-height: calc(100svh - var(--header-h) - 200px); padding: 96px 0; }
.page-404 .code {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 0.2em; color: var(--accent);
  margin-bottom: 16px;
}
.page-404 h1 { margin-bottom: 16px; }
.page-404 .lede { color: var(--muted); max-width: 48ch; }
.page-404 .links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 32px 0 40px;
}
.safety-card {
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.safety-card h2 { font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-family: var(--font-sans); font-weight: 700; }
.safety-card p { color: var(--muted); font-size: 15px; }

/* Utilities */
.legal-line { color: var(--muted-2); font-size: 13px; }
.mt-0 { margin-top: 0; }

@media (max-width: 960px) {
  .section { padding: 64px 0; }
  .hero-content { padding: 64px 0 56px; width: min(var(--container), calc(100% - 40px)); margin-left: auto; margin-right: auto; }
  .span-7, .span-5, .span-6, .span-4, .span-8 { grid-column: span 12; }
  .rules, .platforms, .trust-grid, .split, .footer-grid, .page-404 .links { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .rules { gap: 16px; }
  .split-media { min-height: 240px; }
}
@media (max-width: 640px) {
  h1 { font-size: 40px; }
  .hero .lede { font-size: 16px; }
  .modal { padding: 16px; align-items: flex-end; }
  .modal-sheet { width: 100%; border-radius: 20px 20px 0 0; max-height: 92svh; }
  .modal-body { padding: 24px 20px 12px; }
  .modal-actions { padding: 12px 20px 20px; }
  .panel, .split-copy { padding: 24px; }
  .page-404 { padding: 64px 0; }
}
