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

:root {
  --navy: #011654;
  --navy-dark: #000C55;
  --navy-mid: #0F2970;
  --blue-accent: #1e4fd8;
  --blue-light: #4a7dff;
  --blue-glow: #3366ff;
  --white: #ffffff;
  --gray-light: #98A2B3;
  --gray-text: #d0d5dd;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(74, 125, 255, 0.12);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('logo/backdrop.svg') center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.water-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30, 79, 216, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(74, 125, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(30, 79, 216, 0.08) 0%, transparent 60%);
  z-index: 1;
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--blue-light);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1);
  }
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  padding: 3rem 2rem;
  text-align: center;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  animation: fadeInDown 0.8s ease-out forwards;
  opacity: 1;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(30, 79, 216, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 32px rgba(30, 79, 216, 0.45);
}

.brand-name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--white);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  font-family: inherit;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(74, 125, 255, 0.3);
}

.lang-option {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-light);
  transition: color 0.3s;
  letter-spacing: 0.05em;
}

.lang-option.active {
  color: var(--blue-light);
}

.lang-divider {
  color: rgba(74, 125, 255, 0.3);
  font-size: 0.8rem;
}

/* Main */
main {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 1;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(30, 79, 216, 0.2), rgba(74, 125, 255, 0.1));
  border: 1px solid rgba(74, 125, 255, 0.2);
  color: var(--blue-light);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white);
  line-height: 1.1;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  h1 {
    background: linear-gradient(135deg, var(--white) 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--blue-light);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.description {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.description:last-of-type {
  margin-bottom: 2.5rem;
}

.description--secondary {
  opacity: 0.95;
}

/* Form */
.notify-form {
  margin-bottom: 3.5rem;
}

.input-group {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(74, 125, 255, 0.1);
  transition: box-shadow 0.3s;
}

.input-group:focus-within {
  box-shadow:
    0 4px 32px rgba(30, 79, 216, 0.3),
    0 0 0 1px rgba(74, 125, 255, 0.3);
}

.input-group input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(74, 125, 255, 0.2);
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.input-group input::placeholder {
  color: var(--gray-light);
}

.input-group input:focus {
  border-color: var(--blue-light);
  background: rgba(255, 255, 255, 0.08);
}

.input-group button {
  padding: 1rem 1.75rem;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-glow));
  color: var(--white);
  border: none;
  border-radius: 0 12px 12px 0;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s, box-shadow 0.3s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.input-group button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
}

.input-group button:hover {
  box-shadow: 0 4px 16px rgba(30, 79, 216, 0.4);
}

.input-group button:hover::after {
  opacity: 1;
}

.input-group button:active {
  transform: scale(0.98);
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  min-height: 1.25rem;
  transition: opacity 0.3s;
}

.form-message.success {
  color: #34d399;
}

.form-message.error {
  color: #f87171;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

.feature {
  padding: 2rem 1.25rem 1.5rem;
  border-radius: 20px;
  background: var(--white);
  border: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-accent), var(--blue-light), #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(30, 79, 216, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature.expanded {
  box-shadow:
    0 20px 60px rgba(30, 79, 216, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature.expanded::before {
  transform: scaleX(1);
}

.feature-icon {
  color: var(--white);
  margin-bottom: 1.25rem;
  display: inline-flex;
  padding: 0.875rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
  box-shadow: 0 4px 12px rgba(30, 79, 216, 0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}

.feature:hover .feature-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(30, 79, 216, 0.4);
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.feature-summary {
  font-size: 0.85rem;
  color: #475467;
  line-height: 1.6;
}

/* Expand area - hidden by default */
.feature-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s 0.1s, margin 0.4s;
  margin-top: 0;
}

.feature.expanded .feature-expand {
  max-height: 400px;
  opacity: 1;
  margin-top: 1rem;
}

.feature-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  text-align: left;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.feature-details li {
  font-size: 0.78rem;
  color: #344054;
  line-height: 1.5;
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
}

.feature-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
}

.feature-stats {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid #e5e7eb;
}

.feature-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0.5rem;
  border-radius: 10px;
  background: #f0f4ff;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.6rem;
  color: #475467;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
  font-weight: 500;
}

/* Hint */
.feature-hint {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--blue-accent);
  opacity: 0;
  transition: opacity 0.3s;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.feature:hover .feature-hint {
  opacity: 0.6;
}

.feature.expanded .feature-hint {
  opacity: 0.6;
}

/* Footer */
footer {
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 1;
}

.contact-info a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: var(--white);
}

.contact-info p {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.copyright {
  color: var(--gray-light);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .particle {
    display: none;
  }
}

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

@media (max-width: 768px) {
  .container {
    padding: 2.5rem 1.5rem;
  }

  header {
    margin-bottom: 2.5rem;
  }

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

@media (max-width: 640px) {
  .container {
    padding: 2rem 1rem;
  }

  header {
    margin-bottom: 2rem;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
  }

  .input-group {
    flex-direction: column;
    border-radius: 12px;
  }

  .input-group input {
    border-right: 2px solid rgba(74, 125, 255, 0.2);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
  }

  .input-group button {
    border-radius: 0 0 12px 12px;
    padding: 0.875rem;
  }

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

  .description {
    margin-bottom: 1rem;
  }

  .description:last-of-type {
    margin-bottom: 2rem;
  }

  .backdrop {
    background-size: contain;
  }
}
