@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0b;
  --surface:     #0f0f10;
  --border:      #1f1f22;
  --border-soft: #252528;
  --text-primary:  #e8e8e2;
  --text-muted:    #8c8c86;
  --green:         #7db87a;
  --green-dim:     #4e7a4c;
  --green-bg:      #7db87a14;
  --font-sans: 'Inter', 'SF Pro Display', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html {
  height: 100%;
  background: var(--bg);
}

body {
  height: 100%;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.28s ease;
}

body.page-loaded {
  opacity: 1;
}

/* ── Sonar Background ──────────────────────────────────────── */
#sonar-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Grain & Vignette Overlay ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #ffffff05 0%, transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 55%, #00000088 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Page Layout ───────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* top padding mirrors where index.html's centered frame sits:
     half the viewport minus half the index frame height (~290px).
     Clamped so it never collapses below 2rem on small screens. */
  padding: clamp(1.5rem, 8vh, 100px) 2rem 2rem;
}

/* ── App Frame ─────────────────────────────────────────────── */
.frame {
  width: 100%;
  max-width: 980px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 0 0 1px #ffffff04 inset,
    0 32px 80px #00000060,
    0 2px 4px #00000040;
}

/* ── Top Bar ───────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.topbar-logo {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.topbar-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.topbar-nav a {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.topbar-nav a:hover  { color: var(--text-primary); }
.topbar-nav a.active { color: var(--green); }

.topbar-cta {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-dim);
  border-radius: 6px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.topbar-cta:hover {
  background: #7db87a22;
  border-color: var(--green);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-toggle span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--border-soft);
}

.lang-toggle button {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.1rem 0;
  transition: color 0.15s;
}

.lang-toggle button:hover { color: var(--text-primary); }
.lang-toggle button.lang-active { color: var(--green); }

/* ── Hero Body ─────────────────────────────────────────────── */
.hero {
  padding: 4.5rem 2.5rem 3rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 2rem;
  letter-spacing: 0.07em;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.headline {
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}

.headline span { color: var(--green); }

.subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.subtitle-line1 { color: var(--text-muted); }
.subtitle-line2 { color: var(--green); }

/* ── Process Steps ──────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.step:first-child { border-top: 1px solid var(--border); }

.step-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.12em;
  padding-top: 0.2rem;
  line-height: 1;
}

.step-tag {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.step-body {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.step-body em {
  font-style: normal;
  color: var(--green);
}

/* ── Principles row ─────────────────────────────────────────── */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.principle {
  padding: 1.5rem 1.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.principle:last-child { border-right: none; }

.principle-icon {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  margin-bottom: 0.25rem;
}

.principle-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.principle-desc {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 680px) {
  .step { grid-template-columns: 1.75rem 1fr; gap: 1rem; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2) { border-right: none; }
  .principle:nth-child(3),
  .principle:nth-child(4) { border-top: 1px solid var(--border); }
  .principle:nth-child(4) { border-right: none; }
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--green); }

.faq-question .faq-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green-dim);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--green);
}

.faq-answer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-bottom: 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

/* ── Prose block ────────────────────────────────────────────── */
.prose {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 680px;
  letter-spacing: -0.01em;
}

.prose em {
  font-style: normal;
  color: var(--green);
}

.prose-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 720px;
}

.prose-stack .prose {
  max-width: 100%;
}

.prose-accent {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.prose-green {
  color: var(--green) !important;
}

.hero-tagline {
  margin-top: 1.75rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 560px;
  letter-spacing: -0.01em;
}

/* ── Primary Actions ────────────────────────────────────────── */
.actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-radius: 6px;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green);
  color: #0a0a0b;
  font-weight: 600;
  box-shadow: 0 0 20px #7db87a28;
}

.btn-primary:hover {
  background: #8ecb8b;
  box-shadow: 0 0 28px #7db87a40;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid #3a3a3e;
}

.btn-secondary:hover {
  border-color: #5a5a5e;
  background: #ffffff06;
}

/* ── Info Grid ──────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.info-cell {
  padding: 1.6rem 1.5rem;
  border-right: 1px solid var(--border);
}

.info-cell:last-child { border-right: none; }

.info-cell-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.info-cell-desc {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── Lower Section ──────────────────────────────────────────── */
.lower-section {
  padding: 3.5rem 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.lower-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.lower-heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 540px;
  line-height: 1.3;
}

.lower-heading em {
  font-style: normal;
  color: var(--green);
}

a.lower-heading {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.lower-heading:hover {
  text-decoration: underline;
}

.lower-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.lower-grid--button-right {
  grid-template-columns: 1fr auto;
}

/* ── Sub-page Header ────────────────────────────────────────── */
.page-header {
  padding: 3.5rem 2.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
  font-family: var(--font-sans);
}

.page-title span { color: var(--green); }

.page-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 460px;
}

/* ── Content Section ────────────────────────────────────────── */
.content-section {
  padding: 2.5rem;
  border-top: 1px solid var(--border);
}

.content-section + .content-section {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* ── Card Grid ──────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.card {
  background: var(--surface);
  padding: 2rem 1.75rem;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--green);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.card-body {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── In-development section ─────────────────────────── */
.dev-section {
  padding: 2.5rem;
  border-top: 1px solid var(--border);
}

.dev-section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0.4rem 0 1.75rem;
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.dev-card {
  background: var(--surface);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dev-card-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dev-card-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dev-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.55;
  flex-shrink: 0;
  animation: dev-pulse 2.8s ease-in-out infinite;
}

@keyframes dev-pulse {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 0.15; }
}

.dev-card-body {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.8;
  flex: 1;
}

.dev-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.dev-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .dev-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .dev-grid { grid-template-columns: 1fr; }
}

/* ── Pricing Tier ───────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.pricing-tier {
  background: var(--surface);
  padding: 2rem 1.75rem;
}

.pricing-tier.featured {
  background: #121214;
}

.pricing-tier-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pricing-tier.featured .pricing-tier-label {
  color: var(--green);
}

.pricing-amount {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.pricing-amount span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.pricing-note {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pricing-features li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: '→';
  color: var(--green-dim);
  flex-shrink: 0;
}

/* ── Work Grid ──────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.work-item {
  background: var(--surface);
  padding: 2rem 1.75rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.work-item-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-item-year {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.work-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.work-item-desc {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.work-item-placeholder {
  background: var(--surface);
  padding: 2rem 1.75rem;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-item-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--border-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Contact Form ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-block-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--green);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.contact-block-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
}

.contact-block-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  background: #0a0a0b;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  appearance: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green-dim);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #3a3a3e;
}

.field textarea { min-height: 100px; }

/* Checkbox group */
.field-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.35rem;
}

.field-checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  user-select: none;
  transition: color 0.15s;
}

.field-checkboxes label:hover { color: var(--text-primary); }

.field-checkboxes input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid #3a3a3e;
  border-radius: 3px;
  background: #0a0a0b;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.field-checkboxes input[type="checkbox"]:hover {
  border-color: var(--green-dim);
}

.field-checkboxes input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}

.field-checkboxes input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  width: 4px;
  height: 8px;
  border: 2px solid #0a0a0b;
  border-top: none;
  border-left: none;
  transform: translate(-50%, -50%) rotate(45deg);
}

.field-checkboxes label:has(input:checked) {
  color: var(--green);
}

/* File attach */
.file-attach-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.file-attach-wrap input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-attach-filename {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Burger button ───────────────────────────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-muted);
  transition: transform 0.22s ease, opacity 0.18s ease, background 0.2s;
  transform-origin: center;
}

.burger:hover span { background: var(--green); }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--green); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--green); }

/* ── Mobile nav panel ────────────────────────────────────────── */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-nav.open {
  max-height: 520px;
  border-top: 1px solid var(--border);
}

.mobile-nav-links {
  list-style: none;
  padding: 0.5rem 1.5rem 0;
}

.mobile-nav-links li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav-links a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.95rem 0;
  letter-spacing: 0.06em;
  transition: color 0.18s;
}

.mobile-nav-links a:hover  { color: var(--text-primary); }
.mobile-nav-links a.active { color: var(--green); }

.mobile-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .page { padding: 1rem 1rem 1rem; }
  .frame { border-radius: 14px; }
  .hero { padding: 3rem 1.5rem 2rem; }
  .page-header { padding: 2.5rem 1.5rem 2rem; }
  .content-section { padding: 2rem 1.5rem; }
  .topbar { padding: 0.9rem 1.25rem; }
  .topbar-nav { display: none; }
  .topbar-right .lang-toggle { display: none; }
  .topbar-cta { display: none; }
  .burger { display: flex; }

  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .info-cell:nth-child(2) { border-right: none; }
  .info-cell:nth-child(3),
  .info-cell:nth-child(4) { border-top: 1px solid var(--border); }
  .info-cell:nth-child(4) { border-right: none; }

  .lower-section { padding: 2.5rem 1.5rem 1.5rem; }
  .dev-section   { padding: 2rem 1.5rem; }
  .lower-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .card-grid,
  .work-grid,
  .pricing-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
