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

:root {
  --bg: #0b0a0c;
  --text: #edeae2;
  --accent: #ffffff;
  --accent2: #7C3AED;
  --accent3: #1a3a5c;
  --glass: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.06);
  --radius: 1.5rem;
  --font-body: 'Space Grotesk', sans-serif;
  --font-display: 'Syne', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

a, button, input, textarea { cursor: none; }

::selection { background: var(--accent); color: #0b0a0c; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

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

.cursor {
  position: fixed; width: 20px; height: 20px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  mix-blend-mode: difference;
  transition: transform 0.12s ease, width 0.3s, height 0.3s;
  transform: translate(-50%,-50%);
}

.navbar {
  position: fixed; top: 0; width: 100%;
  display: flex; justify-content: flex-end;
  align-items: center;
  padding: 1.5rem 3rem;
  z-index: 1000;
  mix-blend-mode: difference;
}

.logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1rem; letter-spacing: 0.15em;
  color: #fff; text-decoration: none;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: #fff; text-decoration: none;
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6; transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }

.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  padding: 8rem 3rem 6rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 4rem 4rem;
  z-index: 0;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 900px;
}

.hero-title {
  line-height: 0.9;
}

.title-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 5.4rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.title-line:nth-child(1) {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
  animation: fadeSlide 1s 0.1s both;
}

.title-line:nth-child(2) {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlide 1s 0.3s both, gradShift 4s ease-in-out infinite;
}

@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.glitch { position: relative; }
.glitch::before {
  animation: glitch1 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  -webkit-text-fill-color: var(--accent2);
}
.glitch::after {
  animation: glitch2 4s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  -webkit-text-fill-color: var(--accent3);
}
@keyframes glitch1 {
  0%,90%,100% { transform: translate(0); }
  92% { transform: translate(-4px, 2px); }
  94% { transform: translate(3px, -1px); }
  96% { transform: translate(-2px, 3px); }
}
@keyframes glitch2 {
  0%,90%,100% { transform: translate(0); }
  92% { transform: translate(4px, -2px); }
  94% { transform: translate(-3px, 1px); }
  96% { transform: translate(2px, -3px); }
}

.title-line.subtitle {
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text);
  opacity: 0.6;
  margin-top: 0.5rem;
  animation: fadeSlide 1s 0.5s both;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-desc {
  margin-top: 2rem;
  max-width: 520px;
  font-size: 1rem;
  opacity: 0.7;
  animation: fadeSlide 1s 0.6s both;
}

.btn-primary {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s;
  animation: fadeSlide 1s 0.7s both;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero-marquee {
  position: absolute; bottom: 0; left: 0; right: 0;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.3;
  z-index: 2;
}
.hero-marquee span {
  display: inline-block;
  animation: marquee 30s linear infinite;
  padding-left: 100%;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.section {
  padding: 6rem 3rem;
  position: relative;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.3;
  margin-bottom: 3rem;
}
.section-label.light { color: #fff; opacity: 0.5; }

.how {
  background: linear-gradient(180deg, var(--bg) 0%, #0f0e12 100%);
}

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

.how-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.3s;
}

.how-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent3), var(--accent2), var(--accent));
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: inherit;
  z-index: 0;
}

.how-card:hover::before { opacity: 0.08; }
.how-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }

.how-card > * { position: relative; z-index: 1; }

.card-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent3), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.how-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.how-card p {
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.6;
}

.submit {
  background: #0b0a0c;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.submit-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(107,68,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,49,146,0.08) 0%, transparent 50%);
  z-index: 0;
}

.submit-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.submit-text h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.submit-text p {
  opacity: 0.6;
  font-size: 0.9rem;
  line-height: 1.7;
}

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

.form-field {
  position: relative;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: none;
  position: relative;
  z-index: 2;
}

.form-field textarea {
  min-height: 60px;
}

.form-field label {
  position: absolute;
  left: 0; top: 0.85rem;
  font-size: 1rem;
  opacity: 0.35;
  transition: all 0.3s;
  pointer-events: none;
  z-index: 1;
}

.form-field input:focus ~ label,
.form-field input:valid ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:valid ~ label {
  top: -0.75rem;
  font-size: 0.65rem;
  opacity: 0.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-border {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
  transition: height 0.3s, background 0.3s;
}

.form-field input:focus ~ .form-border,
.form-field textarea:focus ~ .form-border {
  height: 2px;
  background: var(--accent);
}

.btn-submit {
  align-self: flex-start;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn-submit:hover {
  background: var(--accent);
  color: var(--bg);
}

.form-status {
  font-size: 0.85rem;
  min-height: 1.5rem;
  opacity: 0.8;
}
.form-status.success { color: var(--accent); }
.form-status.error { color: var(--accent2); }

.footer {
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: rgba(237, 234, 226, 0.65);
}

.footer-main { display: flex; align-items: center; gap: 0.75rem; }
.footer-main .logo { color: rgba(237, 234, 226, 0.85); font-size: 0.8rem; }
.footer-domain { font-family: var(--font-body); letter-spacing: 0.1em; }

.footer-links {
  display: flex; gap: 1.5rem;
}
.footer-links a {
  color: rgba(237, 234, 226, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.footer-links a:hover { color: rgba(237, 234, 226, 1); }

.footer-copy { letter-spacing: 0.05em; }
.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.footer-link:hover { color: #fff; }

.page-content {
  padding-top: 8rem;
  max-width: 760px;
}

.page-body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.page-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
  opacity: 0.8;
}

.page-body p {
  font-size: 0.9rem;
  opacity: 0.65;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.page-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--accent);
  opacity: 0.7;
}

.page-body ol, .page-body ul {
  margin: 0.75rem 0 1.5rem 1.5rem;
  font-size: 0.9rem;
  opacity: 0.65;
  line-height: 1.8;
}

.page-body li {
  margin-bottom: 0.4rem;
}

.page-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-body a:hover {
  opacity: 0.8;
}

/* ── cookie consent banner ── */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #141316;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 2rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-consent.show {
  display: flex;
  transform: translateY(0);
}

.cookie-consent p {
  margin: 0;
  opacity: 0.75;
  max-width: 600px;
  flex: 1;
}

.cookie-consent p a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.3s;
}

.cookie-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.cookie-btn.accept {
  background: #fff;
  color: #0b0a0c;
  border-color: #fff;
}

.cookie-btn.accept:hover {
  background: rgba(255,255,255,0.85);
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.cookie-overlay.show {
  display: flex;
}

.cookie-modal {
  background: #141316;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cookie-modal p {
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cookie-category:last-of-type {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cookie-category-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.cookie-category-label small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 0.2rem;
}

.toggle {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle input:checked + .toggle-slider {
  background: #7C3AED;
}

.toggle input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

.cookie-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cookie-modal-actions .cookie-btn {
  flex: 1;
  text-align: center;
}

.cookie-settings-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9990;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.cookie-settings-btn.show {
  display: flex;
}

.cookie-settings-btn:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}

@media (max-width: 640px) {
  .cookie-consent {
    flex-direction: column;
    padding: 1rem 1.25rem;
  }
  .cookie-consent p { max-width: 100%; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .cookie-btn { flex: 1; text-align: center; }
  .cookie-modal { padding: 1.5rem; }
}

@media print {
  .noise, .cursor, .hero-marquee { display: none !important; }
  body { background: #fff; color: #000; cursor: auto; }
  a, button, input, textarea { cursor: auto; }
  .navbar { position: static; mix-blend-mode: normal; }
  .logo { color: #000; }
  .hero { min-height: auto; padding: 3rem 2rem; }
  .hero-title .title-line:nth-child(2) { background: none; -webkit-text-fill-color: #000; }
  .btn-primary, .btn-submit { border-color: #000; color: #000; }
  .how-card { break-inside: avoid; border-color: #ddd; background: #f9f9f9; }
  .how-card::before { display: none; }
  .card-num { background: none; -webkit-text-fill-color: #666; }
  .footer { border-top-color: #ddd; }
}

@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  .hero { padding: 6rem 1.5rem 4rem; }
  .section { padding: 4rem 1.5rem; }
  .submit-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  .nav-links { display: none; }
  .how-grid { grid-template-columns: 1fr; }
}