/* ============================================================
   SEPI MAIL — styles.css
   ============================================================
   Sections:
   01. Google Fonts Import
   02. CSS Variables (Colors, Fonts, Spacing)
   03. Reset & Base
   04. Background & Glows
   05. Navigation
   06. Hero Section
   07. Beta Badge
   08. Invite Form
   09. Error Message
   10. Feature Grid
   11. Footer
   12. Animations & Keyframes
   13. Responsive (Mobile)
   ============================================================ */


/* ============================================================
   01. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Syne:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');


/* ============================================================
   02. CSS VARIABLES
   ============================================================ */
:root {
  /* Colors */
  --color-bg:       #080808;
  --color-surface:  rgba(255, 255, 255, 0.05);
  --color-border:   rgba(255, 255, 255, 0.08);
  --color-neon:     #CCFF00;
  --color-neon-dim: rgba(204, 255, 0, 0.06);
  --color-neon-mid: rgba(204, 255, 0, 0.18);
  --color-neon-hover: #d9ff33;
  --color-text:     #FFFFFF;
  --color-muted:    rgba(255, 255, 255, 0.55);
  --color-subtle:   rgba(255, 255, 255, 0.30);
  --color-faint:    rgba(255, 255, 255, 0.10);
  --color-error:    #ff4d4d;

  /* Fonts */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Syne', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Spacing */
  --nav-height:   96px;
  --footer-height: 80px;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-full:  9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}


/* ============================================================
   03. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  user-select: none;
  display: flex;
  flex-direction: column;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

input {
  font-family: var(--font-mono);
}

::selection {
  background-color: var(--color-neon);
  color: #000;
}


/* ============================================================
   04. BACKGROUND GLOWS
   ============================================================ */
.bg-glow-top-right {
  position: fixed;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 8s ease-in-out infinite alternate;
}

.bg-glow-bottom-left {
  position: fixed;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 10s ease-in-out infinite alternate-reverse;
}


/* ============================================================
   05. NAVIGATION
   ============================================================ */
.main-nav {
  position: relative;
  z-index: 10;
  width: 100%;
  height: var(--nav-height);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  animation: fade-down 0.5s ease both;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-logo-icon span {
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  font-style: italic;
  line-height: 1;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 28px;
}

.lang-btn {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-subtle);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  font-family: var(--font-body);
}

.lang-btn:hover {
  color: var(--color-text);
}

.lang-btn.active {
  color: var(--color-neon);
  border-bottom-color: var(--color-neon);
}


/* ============================================================
   06. HERO SECTION
   ============================================================ */
main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 56px;
  animation: fade-up 0.6s ease 0.1s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 28px;
}

.hero-title-highlight {
  color: var(--color-neon);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}


/* ============================================================
   07. BETA BADGE
   ============================================================ */
.beta-badge {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--color-neon-mid);
  border-radius: var(--radius-full);
  background-color: var(--color-neon-dim);
  margin-bottom: 32px;
}

.beta-badge span {
  color: var(--color-neon);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-family: var(--font-body);
}


/* ============================================================
   08. INVITE FORM
   ============================================================ */
.invite-box {
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 36px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fade-up 0.6s ease 0.25s both;
}

.invite-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 700;
  margin-bottom: 10px;
  text-align: left;
  font-family: var(--font-body);
}

.invite-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 17px 20px;
  text-align: center;
  font-size: 17px;
  font-family: var(--font-mono);
  letter-spacing: 0.3em;
  color: var(--color-text);
  outline: none;
  text-transform: uppercase;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  margin-bottom: 6px;
}

.invite-input::placeholder {
  color: rgba(255, 255, 255, 0.1);
}

.invite-input:focus {
  border-color: var(--color-neon);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.08);
}

.invite-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.10);
}

.submit-btn {
  width: 100%;
  background-color: var(--color-neon);
  color: #000;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 17px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  margin-top: 20px;
}

.submit-btn:hover:not(:disabled) {
  background-color: var(--color-neon-hover);
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Spinner inside button */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #000;
  border-top-color: transparent;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-spinner { display: block; }


/* ============================================================
   09. ERROR MESSAGE
   ============================================================ */
.error-msg {
  color: var(--color-error);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  font-family: var(--font-body);
}

.error-msg.visible {
  max-height: 40px;
  opacity: 1;
  margin-top: 10px;
}

.error-msg i {
  margin-right: 5px;
}


/* ============================================================
   10. FEATURE GRID
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
  width: 100%;
  max-width: 780px;
  animation: fade-up 0.6s ease 0.45s both;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  color: var(--color-neon);
  font-size: 20px;
  margin-bottom: 10px;
  display: block;
}

.feature-title {
  color: var(--color-neon);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.feature-desc {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.55;
  font-family: var(--font-body);
}


/* ============================================================
   11. FOOTER
   ============================================================ */
footer {
  position: relative;
  z-index: 10;
  width: 100%;
  height: var(--footer-height);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  animation: fade-up 0.5s ease 0.6s both;
}

.footer-copy {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--font-body);
}

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

.footer-links a {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.28);
  transition: color var(--transition-fast);
  font-family: var(--font-body);
}

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


/* ============================================================
   12. ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes glow-pulse {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.12); }
}


/* ============================================================
   13. RESPONSIVE (MOBILE)
   ============================================================ */
@media (max-width: 768px) {
  .main-nav {
    padding: 0 20px;
  }

  .lang-switcher {
    gap: 16px;
  }

  .lang-btn {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  main {
    padding: 36px 16px;
  }

  .invite-box {
    padding: 24px 20px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
  }

  footer {
    padding: 0 20px;
    height: auto;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
