/* ========================================
   AI Act Manager - Teaser Site
   Colors: #104E5F (teal) + #FF6F5E (coral)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');

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

:root {
  --teal: #104E5F;
  --teal-light: #1a6b80;
  --teal-dark: #0a3340;
  --coral: #FF6F5E;
  --coral-hover: #ff8a7d;
  --coral-dark: #e55a49;
  --off-white: #FAFAF7;
  --cream: #EDE8E0;
  --charcoal: #1A1A2E;
  --text: #2D2D3A;
  --text-light: #6B6B7B;
  --white: #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  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-repeat: repeat;
  background-size: 256px 256px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(16, 78, 95, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo .logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(16, 78, 95, 0.2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: none;
  border: 1.5px solid rgba(16, 78, 95, 0.15);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-btn:hover {
  border-color: var(--teal);
  background: rgba(16, 78, 95, 0.04);
}

.lang-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switcher.open .lang-btn svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(16, 78, 95, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0.35rem;
  min-width: 165px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  border-radius: 8px;
  transition: all 0.15s ease;
  font-family: var(--font);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.lang-option:hover {
  background: rgba(16, 78, 95, 0.06);
  color: var(--teal);
}

.lang-option.active {
  color: var(--teal);
  font-weight: 600;
  background: rgba(16, 78, 95, 0.06);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Animated organic blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(ellipse at 30% 40%, rgba(16, 78, 95, 0.07) 0%, rgba(16, 78, 95, 0.02) 50%, transparent 70%);
  border-radius: 40% 60% 70% 30% / 40% 30% 70% 60%;
  pointer-events: none;
  animation: morphBlob1 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -8%;
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(ellipse at 60% 50%, rgba(255, 111, 94, 0.06) 0%, rgba(255, 111, 94, 0.02) 50%, transparent 70%);
  border-radius: 60% 40% 30% 70% / 60% 70% 30% 40%;
  pointer-events: none;
  animation: morphBlob2 25s ease-in-out infinite;
}

@keyframes morphBlob1 {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 30% 70% 60%; transform: translate(0, 0) rotate(0deg); }
  33% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; transform: translate(-2%, 3%) rotate(5deg); }
  66% { border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%; transform: translate(2%, -2%) rotate(-3deg); }
}

@keyframes morphBlob2 {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 70% 30% 40%; transform: translate(0, 0) rotate(0deg); }
  33% { border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%; transform: translate(3%, -2%) rotate(-4deg); }
  66% { border-radius: 50% 50% 40% 60% / 70% 30% 70% 30%; transform: translate(-2%, 3%) rotate(6deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid rgba(16, 78, 95, 0.1);
  border-radius: 100px;
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 2.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(16, 78, 95, 0.06);
  letter-spacing: 0.01em;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255, 111, 94, 0.4);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(255, 111, 94, 0.4); }
  50% { opacity: 0.7; transform: scale(1.2); box-shadow: 0 0 12px rgba(255, 111, 94, 0.6); }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 400;
  color: var(--teal-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero h1 .highlight {
  color: var(--coral);
  position: relative;
}

.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--text-light);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* --- Signup Form --- */
.signup-form {
  display: flex;
  gap: 0.65rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid rgba(16, 78, 95, 0.12);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.signup-form input[type="email"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(16, 78, 95, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.signup-form button {
  padding: 0.9rem 1.6rem;
  background: linear-gradient(135deg, var(--coral) 0%, #ff8567 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(255, 111, 94, 0.25);
  position: relative;
  overflow: hidden;
}

.signup-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--coral-dark) 0%, var(--coral) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 94, 0.35);
}

.signup-form button:hover::before {
  opacity: 1;
}

.signup-form button span,
.signup-form button {
  position: relative;
  z-index: 1;
}

.signup-form button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 111, 94, 0.25);
}

.signup-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.85rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  color: #2a9d6b;
}

.form-message.error {
  color: var(--coral-dark);
}

/* --- Features Section --- */
.features {
  padding: 5rem 2rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--white);
  border: 1px solid rgba(16, 78, 95, 0.06);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient accent on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--coral) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px 20px 0 0;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(16, 78, 95, 0.08), 0 4px 12px rgba(16, 78, 95, 0.04);
  border-color: rgba(16, 78, 95, 0.1);
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(16, 78, 95, 0.08) 0%, rgba(16, 78, 95, 0.04) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  color: var(--teal);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(16, 78, 95, 0.12) 0%, rgba(16, 78, 95, 0.06) 100%);
  transform: scale(1.05);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--teal-dark);
  margin-bottom: 0.7rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* --- CTA Section --- */
.cta {
  padding: 5.5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--teal-dark) 0%, #0d4454 40%, #123d4d 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Decorative elements in CTA */
.cta::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  max-width: 400px;
  max-height: 400px;
  background: radial-gradient(circle, rgba(255, 111, 94, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 30vw;
  height: 30vw;
  max-width: 300px;
  max-height: 300px;
  background: radial-gradient(circle, rgba(26, 107, 128, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.cta .signup-form input[type="email"] {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  box-shadow: none;
}

.cta .signup-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cta .signup-form input[type="email"]:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 111, 94, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.cta .signup-note {
  color: rgba(255, 255, 255, 0.4);
}

.cta .form-message.success {
  color: #6ee7a8;
}

/* --- Footer --- */
.footer {
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(16, 78, 95, 0.06);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer p {
  font-size: 0.83rem;
  color: var(--text-light);
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}

.footer-langs a {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.footer-langs a:hover {
  color: var(--teal);
}

.footer-langs a.active {
  color: var(--teal);
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav {
    padding: 0.85rem 1.25rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
    min-height: auto;
    min-height: 100svh;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form button {
    padding: 1rem;
  }

  .features {
    padding: 3rem 1.5rem 4rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-card {
    padding: 1.75rem 1.5rem;
  }

  .cta {
    padding: 3.5rem 1.5rem;
  }

  .cta .signup-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-sub {
    font-size: 0.98rem;
  }
}

/* --- Animations (on load) --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.12s; }
.fade-up:nth-child(3) { transition-delay: 0.24s; }
