/* SIRNIK Design System — InCosmos JP */

/* 1. Custom Properties */
:root {
  --canvas: #0A0A0A;
  --text: #FFFFFF;
  --text-muted: #818181;
  --divider: #525252;
  --surface-card: #FFFFFF;
  --surface-card-text: #0A0A0A;
  --surface-elevated: rgba(0, 0, 0, 0.37);
  --font: 'GeneralSans', sans-serif;
  --grid-columns: 5;
  --grid-gutter: 1.25rem;
  --max-width: 100em;
  --page-gutter: min(4vw, 2rem);
  --pill-radius: 500rem;
  font-size: 0.83vw;
}
@media (max-width: 768px) {
  :root { font-size: 16px; }
}

/* 2. @font-face */
@font-face {
  font-family: 'GeneralSans';
  src: url('../fonts/GeneralSans-Variable.woff2') format('woff2-variations');
  font-weight: 200 700;
  font-display: swap;
}

/* 3. Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.1vw, 1.125rem);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* 4. Typography */
h1, h2, h3 { margin: 0; font-weight: 500; }
h1 {
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(2rem, 5vw, 6.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(1.5rem, 3vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.text-muted { color: var(--text-muted); }

/* 5. Layout */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gutter);
}
.section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section + .section { border-top: 1px solid var(--divider); }

/* 6. Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--page-gutter);
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--text);
}
.nav-lang {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-lang:hover { opacity: 1; }
.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-menu.open { display: flex; }

/* 7. Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vw, 6rem) var(--page-gutter);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.65));
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 60rem;
}
.page-hero { padding-top: clamp(8rem, 16vw, 14rem); }

/* 8. Cards */
.card {
  background: var(--surface-card);
  color: var(--surface-card-text);
  padding: clamp(1.5rem, 2vw, 2rem);
  transition: opacity 0.3s, transform 0.3s;
}
.card:hover {
  opacity: 0.92;
  transform: scale(1.015);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gutter);
}

/* 9. Buttons */
.btn-pill {
  display: inline-block;
  padding: 0.75em 2em;
  border-radius: var(--pill-radius);
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: var(--font);
  font-size: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.btn-pill:hover {
  background: var(--text);
  color: var(--canvas);
}
.btn-pill-solid {
  display: inline-block;
  padding: 0.75em 2em;
  border-radius: var(--pill-radius);
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--canvas);
  font-family: var(--font);
  font-size: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.btn-pill-solid:hover {
  background: transparent;
  color: var(--text);
}

/* 10. Info Table */
.info-table { width: 100%; border-collapse: collapse; }
.info-table td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
.info-table td:first-child {
  color: var(--text-muted);
  white-space: nowrap;
}

/* 11. FAQ Accordion */
.faq-item { border-bottom: 1px solid var(--divider); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: inherit;
  cursor: pointer;
  text-align: left;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }

/* 12. Form */
.form-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--divider);
  padding: 0.75rem 0;
  color: var(--text);
  font-family: var(--font);
  font-size: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.form-field:focus { border-bottom-color: var(--text); }
.form-field::placeholder { color: var(--text-muted); }
textarea.form-field { resize: vertical; }

/* Contact form layout */
.contact-form-wrap {
  max-width: 40rem;
}
.contact-form-wrap .form-field {
  margin-bottom: 1.25rem;
}
.contact-form-wrap .cf-turnstile {
  margin-bottom: 1.5rem;
}
.contact-form-wrap .btn-pill-solid {
  margin-top: 0.5rem;
}
.contact-form-wrap .text-muted {
  margin-top: 2rem;
  font-size: 0.875em;
}

/* 13. Legal */
.legal-content article {
  padding: 2rem 0;
  border-bottom: 1px solid var(--divider);
}
.legal-content h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: 1rem;
}
.legal-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* 14. Footer */
.footer {
  border-top: 1px solid var(--divider);
  padding: clamp(3rem, 6vw, 6rem) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gutter);
}
.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
}
.footer-links li + li { margin-top: 0.5rem; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  margin-top: clamp(2rem, 4vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 15. Reveal Animation (base state) */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
}

/* 16. Responsive */
@media (max-width: 768px) {
  :root { --grid-columns: 1; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
