/* ============================================================
   Tentacl Landing Page – style.css
   Premium helles Theme, Parallax, Scroll-Reveal
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --primary: #e8540a;
  --primary-hover: #c94408;
  --primary-light: rgba(232, 84, 10, 0.06);
  --primary-glow: rgba(232, 84, 10, 0.15);
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #999999;
  --border: #e8e8e8;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

/* --- Canvas Background --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 14px 40px;
}

.nav-brand {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  text-decoration: none;
  color: var(--text);
}

.nav-brand svg { width: 36px; height: 36px; flex-shrink: 0; }

.nav-brand span {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  padding-bottom: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* --- Language Switch Flag --- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--transition);
  opacity: 0.7;
}

.lang-switch:hover {
  opacity: 1;
  background: var(--primary-light);
  transform: scale(1.08);
}

.lang-switch svg {
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.nav-login {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text) !important;
  transition: all var(--transition);
}

.nav-login:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* --- Sections --- */
section {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
}

.hero-content {
  max-width: 780px;
}

.hero-wordmark {
  font-family: var(--font);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 32px;
}

.hero-rotating {
  margin-bottom: 16px;
}

.hero-static {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.hero-dynamic-wrapper {
  height: clamp(32px, 4vw, 52px);
  overflow: hidden;
  position: relative;
}

.hero-dynamic {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  font-style: italic;
  color: var(--primary);
  line-height: 1.2;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-dynamic.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

.hero-dynamic.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-muted);
  margin: 24px 0 40px;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 84, 10, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  box-shadow: 0 6px 24px rgba(232, 84, 10, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  border: 1px solid rgba(232, 84, 10, 0.12);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.hero-pill .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(232, 84, 10, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(232, 84, 10, 0); }
}

/* --- Features --- */
.features {
  padding: 120px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: -0.02em;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(232, 84, 10, 0.15);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Founder --- */
.founder {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.founder-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.founder-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px var(--primary-light), var(--shadow);
  overflow: hidden;
  margin: 0 auto 24px;
}

.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.founder-role {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.founder-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.founder-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.founder-linkedin:hover { color: var(--primary); }

.founder-linkedin svg {
  width: 18px;
  height: 18px;
}

/* --- Early Access --- */
.early-access {
  padding: 120px 0;
}

.ea-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.ea-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  margin-bottom: 12px;
}

.ea-card .ea-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.ea-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ea-form input[type="text"],
.ea-form input[type="email"],
.ea-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.ea-form input[type="text"]::placeholder,
.ea-form input[type="email"]::placeholder,
.ea-form textarea::placeholder {
  color: var(--text-light);
}

.ea-form input[type="text"]:focus,
.ea-form input[type="email"]:focus,
.ea-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.ea-form .btn-primary {
  width: 100%;
  padding: 16px;
}

.ea-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.ea-success .check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e6f4ed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ea-success .check svg {
  width: 24px;
  height: 24px;
  stroke: #1a7a4a;
  fill: none;
  stroke-width: 2.5;
}

.ea-success h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.ea-success p {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-brand strong {
  color: var(--text);
  font-weight: 600;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

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

/* --- DSGVO Consent Checkbox --- */
.dsgvo-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  cursor: pointer;
  text-align: left;
  padding: 4px 0;
}

.dsgvo-consent input[type="checkbox"] {
  margin-top: 3px;
  min-width: 18px;
  min-height: 18px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}

.dsgvo-consent span {
  flex: 1;
}

.dsgvo-consent a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

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

.ea-error {
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  line-height: 1.5;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 20px;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p {
  color: #ccc;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.cookie-inner a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font), sans-serif;
  transition: background 0.2s, transform 0.1s;
}

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

.btn-cookie-accept {
  background: var(--primary);
  color: white;
}

.btn-cookie-accept:hover { background: var(--primary-hover); }

.btn-cookie-reject {
  background: rgba(255,255,255,0.12);
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-cookie-reject:hover { background: rgba(255,255,255,0.18); }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }

/* --- Parallax layer helper --- */
.parallax-layer {
  will-change: transform;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-links .nav-link-text { display: none; }
  .hero { padding: 100px 20px 60px; }
  .container { padding: 0 20px; }
  .features { padding: 80px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 28px 24px; }
  .founder { padding: 60px 0; }
  .early-access { padding: 80px 0; }
  .ea-card { padding: 32px 24px; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; }
  .section-title { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .hero-wordmark { margin-bottom: 24px; }
  .hero-sub { font-size: 15px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
