/* ===== TOKENS ===== */
:root {
  --bg:       #1F2A2E;
  --bg2:      #263338;
  --bg3:      #2C3D42;
  --accent:   #c1ff72;
  --accent2:  #8fd44a;
  --accent3:  #F06040;
  --fg:       #ffffff;
  --fg2:      #a0b4a0;
  --fg3:      #4a6050;
  --card-b:   rgba(193,255,114,0.12);
  --radius:   12px;
  --radius-s: 6px;
  --mono:     'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --display:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body:     system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  /* subtle noise texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--card-b);
  position: relative;
  z-index: 10;
}
.logo {
  color: var(--fg);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.logo-img {
  width: clamp(124px, 15vw, 154px);
  height: auto;
  display: block;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--fg2);
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--fg); margin: 5px 0;
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--card-b);
  list-style: none;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--fg2);
  border-bottom: 1px solid var(--card-b);
  text-decoration: none;
}
.nav-mobile a:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--card-b);
  padding: 32px 0;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg3);
}
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a {
  font-size: 12px;
  color: var(--fg2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-s);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }
.btn-accent { background: var(--accent); color: #1F2A2E; }
.btn-ghost {
  background: transparent;
  color: var(--fg2);
  border: 1px solid var(--fg3);
}
.btn-ghost:hover { color: var(--fg); border-color: var(--fg2); }

/* ===== SECTION UTIL ===== */
.section { padding: 72px 0; }
.section:first-of-type { border-top: none; }
.section-divider {
  height: 48px;
  overflow: hidden;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.section-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sec-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.sec-title {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 40px;
}

/* ===== TAG CHIPS ===== */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}
.tag-web  { background: rgba(0,200,240,0.12);  color: var(--accent); }
.tag-app  { background: rgba(123,92,250,0.14); color: #9B8AFF; }
.tag-game { background: rgba(40,200,70,0.12);  color: #3DE26A; }
.tag-plan { background: rgba(240,96,64,0.12);  color: var(--accent3); }

/* ===== STATUS DOT ===== */
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3DE26A;
  box-shadow: 0 0 8px rgba(61,226,106,0.7);
  margin-left: 6px;
  vertical-align: middle;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 6px rgba(61,226,106,0.6); }
  50%      { box-shadow: 0 0 14px rgba(61,226,106,0.9); }
}

/* ===== GRID CARDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }

.card {
  background: var(--bg2);
  border: 1px solid var(--card-b);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover { border-color: rgba(0,200,240,0.28); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }

.card-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 12px 0 8px;
}
.card-desc { color: var(--fg2); font-size: 13px; line-height: 1.65; margin-bottom: 20px; }
.card-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-link:hover { text-decoration: underline; }

.project-teaser {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.04);
}

/* ===== TERMINAL ===== */
.terminal {
  background: #090E16;
  border: 1px solid var(--card-b);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
}
.term-bar {
  background: #111926;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--card-b);
}
.tdot { width: 10px; height: 10px; border-radius: 50%; }
.td-r{background:#FF5F57;} .td-y{background:#FEBC2E;} .td-g{background:#28C840;}
.term-title { font-size: 11px; color: var(--fg3); margin-left: 8px; letter-spacing: 0.5px; }
.term-body { padding: 20px 24px; font-size: 12px; line-height: 1.9; }
.tp { color: var(--accent); }
.tc { color: var(--fg); }
.to { color: var(--fg2); }
.tg { color: #28C840; }
.tv { color: #9B8AFF; }
.cursor {
  display: inline-block; width: 8px; height: 13px;
  background: var(--accent); vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50%{opacity:0;} }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--display);
  font-size: 58px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: 20px;
  color: var(--fg);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc { color: var(--fg2); font-size: 16px; line-height: 1.75; margin-bottom: 32px; max-width: 420px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* decorative grid bg */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,240,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,240,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 40%, black 20%, transparent 80%);
}

/* ===== ABOUT GRID ===== */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text { color: var(--fg2); font-size: 15px; line-height: 1.8; }
.about-text p { margin-bottom: 16px; }
.about-text strong { color: var(--fg); font-weight: 500; }
.stats-col { display: flex; flex-direction: column; gap: 14px; }
.stat-box {
  background: var(--bg2);
  border: 1px solid var(--card-b);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-num {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.stat-label { color: var(--fg2); font-size: 12px; margin-top: 6px; display: block; }

/* ===== PLANNED LIST ===== */
.planned-list { display: flex; flex-direction: column; gap: 12px; }
.planned-row {
  background: var(--bg2);
  border: 1px solid var(--card-b);
  border-radius: 8px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
}
.planned-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
}
.planned-tech { font-family: var(--mono); font-size: 11px; color: var(--fg3); }
.planned-year {
  font-family: var(--mono);
  font-size: 12px;
  color: #9B8AFF;
  background: rgba(123,92,250,0.12);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ===== CONTACT BOX ===== */
.contact-box {
  background: var(--bg2);
  border: 1px solid var(--card-b);
  border-radius: var(--radius);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.contact-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,200,240,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.contact-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-desc { color: var(--fg2); font-size: 14px; }

/* ===== LEGAL PAGES ===== */
.legal-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--card-b);
  margin-bottom: 48px;
}
.legal-header h1 {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.legal-header p { color: var(--fg2); font-size: 14px; }
.legal-body { padding-bottom: 80px; }
.legal-body h2 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 36px 0 12px;
  color: var(--fg);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-b);
}
.legal-body h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--fg);
}
.legal-body p { color: var(--fg2); font-size: 14px; line-height: 1.8; margin-bottom: 12px; }
.legal-body ul { color: var(--fg2); font-size: 14px; line-height: 1.8; margin: 8px 0 12px 20px; }
.legal-body a { color: var(--accent); }
.legal-body strong { color: var(--fg); font-weight: 500; }
.legal-notice {
  background: var(--bg2);
  border: 1px solid var(--card-b);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-s);
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.7;
}

/* ===== SVG DECO ===== */
.deco-blob {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== FAQ SECTION ===== */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--card-b);
  border-radius: 8px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  text-align: left;
}
.faq-q:hover { color: var(--accent); }
.faq-arrow { font-size: 16px; color: var(--fg3); transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--fg2);
  font-size: 14px;
  line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

/* ===== CAT CARDS ===== */
.cat-card {
  background: var(--bg3);
  border: 1px solid var(--card-b);
  border-radius: var(--radius);
  padding: 28px;
}
.cat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon-wrap svg { width: 26px; height: 26px; }
.cat-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}
.cat-desc { color: var(--fg2); font-size: 13px; line-height: 1.65; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 40px;
    gap: 36px;
  }
  .hero h1 { font-size: 42px; letter-spacing: -2px; }
  .hero-desc { font-size: 15px; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-col { flex-direction: row; flex-wrap: wrap; }
  .stat-box { flex: 1; min-width: 120px; }

  .planned-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .planned-name { grid-column: 1; grid-row: 1; }
  .planned-year { grid-column: 2; grid-row: 1; }
  .planned-tech { grid-column: 1 / -1; grid-row: 2; }

  .contact-box { padding: 28px 24px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .sec-title { font-size: 24px; }

  .legal-header h1 { font-size: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 36px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .stats-col { flex-direction: column; }
}
