/* ============================================================
   ilf.studio — Main Stylesheet
   ============================================================ */

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

:root {
  --bg: #f9f9f7;
  --bg-white: #ffffff;
  --text-primary: #111111;
  --text-secondary: #888888;
  --text-muted: #aaaaaa;
  --accent: #65a30d;
  --accent-light: #f7fde8;
  --accent-border: #d4e8a0;
  --border: #e5e5e0;
  --footer-bg: #111111;
  --max-width: 900px;
  --px: 32px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ─── NAVIGATION ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

nav.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  height: 60px;
}

.nav-logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  text-decoration: none;
  margin-right: auto;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
}

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

.nav-cta {
  margin-left: 8px;
  color: var(--accent) !important;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0; right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 24px var(--px);
  z-index: 99;
}

.nav-drawer.open { display: block; }

.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-drawer a {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

/* ─── HERO ─── */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px var(--px) 68px;
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

/* Dot grid */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, #d4d4c8 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

/* Green radial glow */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(101,163,13,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── HERO BG DIAGRAM ─── */
.hero-bg-diagram {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.hero-bg-diagram svg {
  width: 100%;
  height: 100%;
}

.hero-wire-base {
  fill: none;
  stroke: rgba(0,0,0,0.1);
  stroke-width: 2;
}

.hero-wire-active {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}

.hero-node .node-bg {
  fill: var(--bg-white);
  stroke: #e0e0d8;
  stroke-width: 1;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.02));
  transition: stroke 0.3s, filter 0.3s;
}

.hero-node .node-title {
  font-size: 13px;
  font-weight: 600;
  fill: var(--text-dark);
}

.hero-node .status-check {
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-node.active .node-bg {
  stroke: var(--accent);
  filter: drop-shadow(0 0 14px rgba(101, 163, 13, 0.25));
}

.hero-node.active .status-check {
  opacity: 1;
}

.hero-corner {
  position: absolute;
  width: 56px;
  height: 56px;
  border-color: #e0e0d8;
  border-style: solid;
}

.hero-corner-tl { top: 40px; left: 40px; border-width: 1px 0 0 1px; }
.hero-corner-br { bottom: 80px; right: 40px; border-width: 0 1px 1px 0; }

.hero-kicker {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-headline {
  position: relative;
  z-index: 1;
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.hero-headline .accent { color: var(--accent); }

.hero-sub {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.hero-sub span {
  color: #ccc;
  margin: 0 8px;
}

.hero-ctas {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover { background: #578c0a; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 13px 28px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* ─── TICKER ─── */
.ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--border);
  padding: 13px 0;
  overflow: hidden;
  z-index: 1;
  background: #fafaf8;
}

.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-track span {
  color: #bbb;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── SECTIONS ─── */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* ─── SERVICES ─── */
.ai-card {
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background: var(--accent-light);
  padding: 40px;
  margin-bottom: 12px;
}

.ai-badge {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-badge::before { content: '✦'; }

.ai-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.ai-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.ai-desc {
  color: #5a7a20;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.ai-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-feature {
  border: 1px solid #b8d96a;
  color: #4a7a0a;
  background: #eef8c8;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* Flow diagram */
.flow-diagram {
  border: 1px solid #c8e090;
  border-radius: 6px;
  padding: 24px;
  background: #f0fad0;
}

.flow-diagram-label {
  color: #8ab840;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.flow-node {
  border: 1px solid #c8e090;
  border-radius: 3px;
  padding: 9px 12px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #7aaa30;
  background: #e8f8b0;
}

.flow-node.flow-input {
  border-color: #a0cc50;
  color: #4a7a0a;
  background: #dff0a0;
  text-align: left;
}

.flow-node.flow-core {
  border-color: var(--accent);
  color: #3a6008;
  background: #cce860;
  padding: 13px 12px;
  font-size: 10px;
  font-weight: 700;
}

.flow-arrow {
  text-align: center;
  color: #a8cc60;
  font-size: 14px;
  padding: 3px 0;
}

.flow-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
}

.flow-output {
  border: 1px solid #dde8b0;
  border-radius: 3px;
  padding: 7px 8px;
  text-align: center;
  font-size: 8px;
  color: #888;
  letter-spacing: 0.06em;
  background: #fff;
}

.flow-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 0;
}

.flow-split-line { width: 1px; height: 12px; background: #b8d96a; }
.flow-split-bar { width: 70%; height: 1px; background: #b8d96a; }

.flow-footer {
  margin-top: 14px;
  border-top: 1px solid #c8e090;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flow-footer-tools { color: #8ab840; font-size: 9px; }
.flow-footer-uptime { color: var(--accent); font-size: 9px; font-weight: 600; }

/* Supporting cards */
.supporting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.supporting-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  background: var(--bg-white);
}

.supporting-card h4 {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.supporting-card p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.card-link:hover { color: var(--accent); }

/* ─── WHY AUTOMATE ─── */
.pain-headline {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.pain-headline em {
  color: var(--accent);
  font-style: normal;
}

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

.pain-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  background: var(--bg-white);
}

.pain-num {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  width: 28px;
  text-align: center;
  border-bottom: 1px solid var(--accent-border);
}

.pain-card h4 {
  color: #333;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pain-card p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

/* ─── PORTFOLIO ─── */
.portfolio-section {
  padding: 80px 0 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portfolio-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px) 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.portfolio-header a {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.15s;
}

.portfolio-header a:hover { color: var(--accent); }

.scroll-hint {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px) 14px;
  color: #ccc;
  font-size: 10px;
  text-align: right;
}

.portfolio-track-wrap {
  overflow: hidden;
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.portfolio-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 4px var(--px) 20px;
}

.p-card {
  flex-shrink: 0;
  width: clamp(360px, 33vw, 450px);
  background: var(--bg-white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.p-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.p-card-thumb {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #f0f0ec;
}

.p-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s;
}

.p-card:hover .p-card-thumb img { transform: scale(1.03); }

.p-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.15));
}

.p-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.9);
  color: #888;
  border: 1px solid rgba(0,0,0,0.06);
}

.p-card.ai .p-card-badge {
  color: var(--accent);
  border-color: var(--accent-border);
  background: rgba(247,253,232,0.95);
}

.p-card-metric {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(101,163,13,0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 3px 8px;
  border-radius: 3px;
}

.p-card-meta {
  padding: 14px 16px;
}

.p-card-meta h4 {
  color: #222;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
}

.p-card-meta p {
  color: var(--text-muted);
  font-size: 10px;
}

.p-card.ai .p-card-meta h4 { color: #4a7a0a; }
.p-card.ai .p-card-meta p { color: #8ab840; }

/* ─── STATS ─── */
.stats-wrap {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 48px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

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

.stat-number {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-number .plus { color: var(--accent); }

.stat-label {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ─── CTA ─── */
.cta-wrap {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px var(--px);
  text-align: center;
}

.cta-headline {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.0;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-headline .accent { color: var(--accent); }

.cta-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 36px;
}

/* ─── FOOTER ─── */
.footer-wrap {
  background: var(--footer-bg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px var(--px) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}

.footer-logo span { color: #84cc16; }

.footer-brand p {
  color: #666;
  font-size: 12px;
  line-height: 1.7;
  max-width: 240px;
}

.footer-legal {
  color: #444;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 16px;
}

.footer-col h5 {
  color: #555;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #555;
  font-size: 12px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1e1e1e;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { color: #444; font-size: 10px; }

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #444;
  font-size: 10px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: #fff; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  :root { --px: 20px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-corner { display: none; }

  .ai-card { padding: 28px 24px; }
  .ai-card-inner { grid-template-columns: 1fr; gap: 28px; }
  .ai-title { font-size: 26px; }

  .supporting-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }

  .portfolio-header,
  .scroll-hint { padding-left: var(--px); padding-right: var(--px); }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--border); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stat:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }
  .stat-number { font-size: 42px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { padding-top: 60px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  .cta-inner { padding: 60px var(--px); }
  .cta-headline { font-size: 36px; }
}

/* ─── INNER PAGES ─── */
.inner-hero {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 60px;
}

.inner-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px);
}

.inner-hero .section-label { margin-bottom: 12px; }

.inner-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.inner-hero p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
}

/* Legal content */
.legal-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px var(--px) 100px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  color: var(--text-primary);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-content li { margin-bottom: 6px; }

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-content strong { color: var(--text-primary); }

.legal-updated {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Payment page */
.payment-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px var(--px) 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.payment-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
}

.payment-form-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.payment-form-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-amount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.form-currency {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.payment-terms {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 20px;
}

.payment-terms h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.payment-terms ol {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.payment-terms li { margin-bottom: 6px; }

.payment-side h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.payment-side p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.payment-method-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.payment-method-item .method-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.payment-contact-block {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.payment-contact-block h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.payment-contact-block a {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 6px;
}

.payment-contact-block a:hover { color: var(--accent); }

#payment-status {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
}

#payment-status.success {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

#payment-status.error {
  background: #fff0f0;
  border: 1px solid #fca5a5;
  color: #dc2626;
}


/* ─── CONTACT PAGE ─── */
.contact-page-wrap {
  max-width: 1100px;
  margin: 0 auto 100px;
  padding: 0 var(--px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 80px;
}

.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.06);
}

.contact-icon {
  font-size: 48px;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
}

.contact-card h2 {
  font-size: 32px;
  font-weight: 850;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.contact-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  font-size: 16px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.c-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.c-link:hover {
  border-color: var(--accent);
  background: var(--bg-white);
  transform: translateX(6px);
}

.c-link svg {
  color: var(--accent);
  flex-shrink: 0;
}

.c-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.c-val {
  display: block;
  font-weight: 600;
  font-size: 16px;
}

.contact-form-card {
  background: #0f1108;
  border-color: #1a1d0d;
  color: #fff;
}

.contact-form-card .glow-bg {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(101, 163, 13, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.contact-form-card h2 { color: #fff; }
.contact-form-card p { color: rgba(255,255,255,0.6); }

.c-response-time {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #888;
  margin-bottom: 32px;
  background: rgba(255,255,255,0.05);
  padding: 8px 16px;
  border-radius: 100px;
  width: fit-content;
}

.contact-form-card .c-response-time { color: rgba(255,255,255,0.5); }

.c-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: c-pulse 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes c-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.contact-form-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 20px;
  font-size: 17px;
  border-radius: 14px;
}

.contact-trust {
  margin: 60px 0 80px;
  text-align: center;
}

.contact-trust p {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 40px;
}

.trust-icons {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity 0.3s ease;
}

.trust-icons:hover { opacity: 0.7; }

.trust-icons span {
  font-size: 20px;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.contact-faq {
  border-top: 1px solid var(--border);
  padding-top: 100px;
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.faq-item h4 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

@media (max-width: 900px) {
  .contact-grid, .faq-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-card { padding: 40px; }
  .trust-icons { gap: 32px; }
}

