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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #080808;
  --white: #ffffff;
  --blue: #146ef5;
  --blue-hover: #0055d4;
  --blue-light: #e8f0fe;
  --purple: #7a3dff;
  --pink: #ed52cb;
  --green: #00d722;
  --gray-800: #222222;
  --gray-700: #363636;
  --gray-500: #5a5a5a;
  --gray-300: #ababab;
  --border: #d8d8d8;
  --border-hover: #898989;
  --shadow: 0px 84px 24px rgba(0,0,0,0), 0px 54px 22px rgba(0,0,0,0.01), 0px 30px 18px rgba(0,0,0,0.04), 0px 13px 13px rgba(0,0,0,0.08), 0px 3px 7px rgba(0,0,0,0.09);
  --shadow-sm: 0px 20px 8px rgba(0,0,0,0), 0px 11px 7px rgba(0,0,0,0.03), 0px 5px 5px rgba(0,0,0,0.06), 0px 1px 3px rgba(0,0,0,0.07);
  --radius: 4px;
  --radius-md: 8px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Space Grotesk', Arial, sans-serif; background: var(--white); color: var(--black); line-height: 1.5; -webkit-font-smoothing: antialiased; }

::selection { background: #146ef520; }
::-webkit-scrollbar { width: 5px; } ::-webkit-scrollbar-track { background: #f5f5f5; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px; display: flex; align-items: center;
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; display: flex; align-items: center; gap: 40px; }
.nav-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-logo-mark { width: 28px; height: 28px; background: var(--blue); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.nav-logo-mark span { font-weight: 700; font-size: 12px; color: white; letter-spacing: -0.5px; }
.nav-logo-name { font-weight: 600; font-size: 17px; color: var(--black); letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  padding: 6px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--gray-500);
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-link:hover { color: var(--black); background: #f5f5f5; }
.nav-link.active { color: var(--black); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-lang {
  padding: 5px 10px; border-radius: var(--radius); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; color: var(--gray-500);
  background: white; cursor: pointer; transition: all 0.15s; font-family: 'Space Grotesk', sans-serif;
}
.nav-lang:hover { border-color: var(--border-hover); color: var(--black); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; line-height: 1.6; letter-spacing: -0.16px;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-hover); }

.btn-black { background: var(--black); color: white; }
.btn-black:hover { background: #1a1a1a; }

.btn-ghost { background: transparent; color: var(--black); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.btn-nav { background: var(--black); color: white; padding: 8px 16px; font-size: 13px; font-weight: 500; border-radius: var(--radius); }
.btn-nav:hover { background: #1a1a1a; transform: translateY(-2px); }

/* ─── BADGE ─── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius); border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--gray-500);
}
.badge-blue { background: rgba(20,110,245,0.08); border-color: rgba(20,110,245,0.2); color: var(--blue); }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ─── SECTION LABELS ─── */
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gray-300); margin-bottom: 16px;
}

/* ─── HEADINGS ─── */
.h1 { font-size: clamp(48px, 6.5vw, 80px); font-weight: 600; line-height: 1.04; letter-spacing: -1.5px; color: var(--black); }
.h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 600; line-height: 1.04; letter-spacing: -1px; color: var(--black); }
.h3 { font-size: clamp(22px, 2.5vw, 32px); font-weight: 500; line-height: 1.3; color: var(--black); }
.h4 { font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--black); }
.body-lg { font-size: 20px; font-weight: 400; line-height: 1.5; color: var(--gray-500); }
.body { font-size: 16px; font-weight: 400; line-height: 1.6; letter-spacing: -0.16px; color: var(--gray-500); }

/* ─── CARD ─── */
.card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: white; transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--border-hover); transform: translateY(-2px); }

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--border); }

/* ─── SECTION ─── */
.section { padding: 96px 40px; }
.section-sm { padding: 64px 40px; }
.container { max-width: 1200px; margin: 0 auto; }

/* ─── CHECK LIST ─── */
.check-list { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--gray-700); }
.check-list li::before { content: ''; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(20,110,245,0.1); border: 1.5px solid rgba(20,110,245,0.3); margin-top: 2px; background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%23146ef5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }

/* ─── FOOTER ─── */
.footer { background: var(--black); padding: 64px 40px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 64px; }
.footer-brand p { font-size: 14px; color: #666; line-height: 1.7; margin-top: 12px; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #444; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: #666; transition: color 0.15s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid #1a1a1a; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 13px; color: #444; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo-mark { width: 24px; height: 24px; background: var(--blue); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.footer-logo-mark span { font-weight: 700; font-size: 10px; color: white; }
.footer-logo-name { font-weight: 600; font-size: 14px; color: white; }

/* ─── PLACEHOLDER IMAGE ─── */
.img-placeholder {
  background: #f5f5f5;
  border-radius: var(--radius-md);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0, rgba(0,0,0,0.03) 1px, transparent 0, transparent 50%);
  background-size: 10px 10px;
}
.img-placeholder span { font-family: 'Space Mono', monospace; font-size: 11px; color: #bbb; text-align: center; line-height: 1.5; position: relative; z-index: 1; }

/* ─── PAGE HEADER ─── */
.page-header { padding: 128px 40px 80px; border-bottom: 1px solid var(--border); }
.page-header-inner { max-width: 1200px; margin: 0 auto; }

/* ─── GRID UTILITIES ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }

/* ─── ICON BOX ─── */
.icon-box { width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-box-blue { background: rgba(20,110,245,0.08); border-color: rgba(20,110,245,0.2); color: var(--blue); }
.icon-box-purple { background: rgba(122,61,255,0.08); border-color: rgba(122,61,255,0.2); color: var(--purple); }
.icon-box-green { background: rgba(0,215,34,0.08); border-color: rgba(0,215,34,0.2); color: var(--green); }

/* ─── TAG ─── */
.tag { display: inline-block; padding: 3px 8px; border-radius: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; background: #f5f5f5; color: var(--gray-500); }
.tag-blue { background: rgba(20,110,245,0.08); color: var(--blue); }

/* ─── MONO ─── */
.mono { font-family: 'Space Mono', monospace; }

/* ════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤900px) + MOBILE (≤640px)
   ════════════════════════════════════════════════ */

/* ─── NAV MOBILE ─── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; cursor: pointer;
  background: none; border: none; padding: 4px; margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--black);
  border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-overlay {
  display: none; position: fixed; inset: 64px 0 0 0; z-index: 199;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
  flex-direction: column; padding: 24px 24px 32px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-links { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.nav-mobile-link {
  padding: 14px 12px; font-size: 18px; font-weight: 600; color: var(--black);
  border-radius: var(--radius); transition: background 0.15s;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-mobile-link:hover { background: #f5f5f5; }
.nav-mobile-link.active { color: var(--blue); }
.nav-mobile-bottom { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border); }

@media (max-width: 900px) {
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 20px; gap: 0; }

  .section, .section-sm { padding: 64px 20px; }
  .container { padding: 0; }

  /* grids → single column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* footer */
  .footer { padding: 48px 20px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 640px) {
  /* footer */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* ─── CURSOR DOT — hide on touch ─── */
@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none !important; }
}

/* ─── INPUT ─── */
.input {
  width: 100%; padding: 11px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-family: 'Space Grotesk', sans-serif; background: white; color: var(--black);
  outline: none; transition: border-color 0.15s;
}
.input:focus { border-color: var(--blue); }
.input::placeholder { color: var(--gray-300); }
label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-700); margin-bottom: 6px; }
textarea.input { resize: vertical; min-height: 140px; line-height: 1.6; }
