@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --blue-700: #0f6bff;
  --blue-500: #4ca6ff;
  --blue-300: #9dd6ff;
  --navy-900: #0a1022;
  --navy-800: #0f1a36;
  --slate-200: #eef4ff;
  --slate-50: #f9fbff;
  --glass: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 20px 60px rgba(6, 22, 54, 0.35);
  --text-primary: #0a132a;
  --text-on-dark: #eaf1ff;
  --success: #1ad598;
  --error: #f26b6b;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
  color-scheme: dark light;
}

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

body {
  margin: 0;
  font-family: 'Manrope', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: radial-gradient(180% 120% at 20% 20%, rgba(76, 166, 255, 0.25), transparent),
    radial-gradient(160% 100% at 80% 0%, rgba(15, 107, 255, 0.35), rgba(10, 16, 34, 0.8)),
    radial-gradient(200% 160% at 30% 80%, rgba(10, 16, 34, 0.9), #04060c);
  color: var(--text-on-dark);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.layout {
  width: min(94vw, var(--max-width));
  margin: 0 auto;
}

.glass-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(4, 6, 12, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-on-dark);
}

.brand-logo {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-700), var(--blue-300));
  box-shadow: 0 12px 40px rgba(76, 166, 255, 0.45);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--blue-300);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 12px;
}

.hero {
  position: relative;
  padding: 64px 0 72px;
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.hero h1 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  margin: 16px 0 12px;
  line-height: 1.1;
  color: #fff;
}

.hero p {
  color: #dce7ff;
  font-size: 18px;
  max-width: 640px;
}

.cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(145deg, var(--blue-700), var(--blue-500));
  color: #fff;
  box-shadow: 0 12px 32px rgba(15, 107, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.stat-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  min-width: 160px;
}

.stat-card strong {
  font-size: 22px;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.hero-visual {
  position: relative;
  padding: 20px;
}

.orbit {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: spin 28s linear infinite;
  pointer-events: none;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 30%, rgba(76, 166, 255, 0.25), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(15, 107, 255, 0.3), transparent 50%);
  filter: blur(20px);
}

.hero-card-content {
  position: relative;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dfeaff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section {
  padding: 48px 0;
}

.section h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 12px;
  color: #fff;
}

.lead {
  color: #d3e2ff;
  font-size: 18px;
  margin: 0 0 16px;
}

.section p.lead {
  color: #d3e2ff;
  margin: 0 0 24px;
  max-width: 780px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 166, 255, 0.35);
  box-shadow: 0 16px 40px rgba(14, 60, 120, 0.35);
}

.card h3 {
  margin: 0 0 8px;
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  background: rgba(76, 166, 255, 0.14);
  color: var(--blue-300);
  margin-bottom: 10px;
}

.features {
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 70% 40%, rgba(76, 166, 255, 0.2), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: center;
}

.list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #e5edff;
}

.list .dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-700), var(--blue-300));
  box-shadow: 0 8px 18px rgba(76, 166, 255, 0.4);
  flex-shrink: 0;
}

.timeline {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
}

.timeline-item h4 {
  margin: 0 0 6px;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.badge {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(76, 166, 255, 0.18);
  color: #fff;
  font-weight: 600;
}

.cta-banner {
  text-align: center;
  padding: 28px;
  background: linear-gradient(145deg, rgba(76, 166, 255, 0.25), rgba(15, 107, 255, 0.2));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 45px rgba(15, 107, 255, 0.3);
}

footer {
  padding: 28px 0 32px;
  color: #d7e4ff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.footer-col h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #fff;
}

.footer-col a {
  display: inline-block;
  margin-bottom: 6px;
  color: #d7e4ff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-switch button {
  background: transparent;
  color: #eaf1ff;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease;
}

.lang-switch button.active {
  background: linear-gradient(145deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 10px 20px rgba(15, 107, 255, 0.35);
}

.auth-page {
  padding: 64px 0 80px;
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.auth-card h1 {
  margin: 0 0 12px;
  color: #fff;
}

.form-group {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

label {
  font-weight: 600;
  color: #eaf1ff;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(76, 166, 255, 0.2);
}

.helper {
  color: #c9d9ff;
  font-size: 14px;
}

.message {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
}

.message.success {
  background: rgba(26, 213, 152, 0.14);
  color: #b9f4dd;
  border: 1px solid rgba(26, 213, 152, 0.5);
}

.message.error {
  background: rgba(242, 107, 107, 0.12);
  color: #ffdede;
  border: 1px solid rgba(242, 107, 107, 0.5);
}

.legal {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.legal h1 {
  margin-top: 0;
  color: #fff;
}

.legal section {
  margin-bottom: 18px;
}

.legal h3 {
  margin-bottom: 6px;
}

.pill-dark {
  background: rgba(10, 16, 34, 0.6);
  color: #e5edff;
}

.mail-shell {
  padding: 32px 0 48px;
  display: grid;
  gap: 16px;
}

.mail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mail-top .pill {
  margin: 0;
}

.mail-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d3e2ff;
  font-weight: 600;
}

.mail-user a {
  color: #fff;
  font-weight: 700;
}

.mail-body {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(460px, 1fr);
  gap: 16px;
  align-items: start;
}

.mail-sidebar {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.mail-folder {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #eaf1ff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mail-folder.active {
  background: linear-gradient(145deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 10px 26px rgba(15, 107, 255, 0.4);
}

.mail-content {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 16px;
  overflow: hidden;
}

.mail-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mail-toolbar input[type="search"] {
  flex: 1;
  min-width: 240px;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.toolbar-actions button {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf1ff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.toolbar-actions .btn-primary {
  border: none;
  background: linear-gradient(145deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 10px 26px rgba(15, 107, 255, 0.35);
}

.toolbar-actions button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.mail-columns {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(480px, 1fr);
  gap: 16px;
  align-items: start;
}

.mail-list {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 560px;
  overflow-y: auto;
}

.mail-item {
  border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: grid;
  gap: 6px;
}

.mail-item:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 166, 255, 0.45);
  box-shadow: 0 14px 32px rgba(14, 60, 120, 0.35);
}

.mail-item.active {
  border-color: rgba(76, 166, 255, 0.9);
  box-shadow: 0 16px 40px rgba(14, 60, 120, 0.55);
}

.mail-item h4 {
  margin: 0 0 6px;
  color: #fff;
  line-height: 1.25;
}

.mail-item .meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: #cfe1ff;
  font-weight: 600;
}

.mail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-700), var(--blue-300));
  box-shadow: 0 6px 12px rgba(15, 107, 255, 0.45);
  visibility: hidden;
  align-self: center;
}

.mail-item.unread .mail-dot {
  visibility: visible;
}

.mail-item .preview {
  color: #d5e4ff;
  margin-top: 6px;
  line-height: 1.4;
}

.mail-detail {
  padding: 18px 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  min-height: 420px;
  overflow-y: auto;
}

.mail-detail h3 {
  margin: 0 0 6px;
  color: #fff;
}

.mail-detail .detail-meta {
  color: #d2e0ff;
  margin-bottom: 12px;
}

.mail-detail .body {
  color: #eaf1ff;
  line-height: 1.65;
}

.mail-compose {
  display: none;
}

.mail-compose h3 {
  margin: 0 0 10px;
  color: #fff;
}

.mail-status {
  margin-top: 10px;
}

.placeholder {
  color: #d0ddf8;
}

.compose-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 40;
}

.compose-modal {
  width: min(640px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.compose-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .mail-body {
    grid-template-columns: 1fr;
  }

  .mail-sidebar {
    position: relative;
    top: auto;
  }

  .mail-columns {
    grid-template-columns: 1fr;
  }
}

.floating {
  animation: float 12s ease-in-out infinite;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.22s;
}

.delay-3 {
  animation-delay: 0.32s;
}

.delay-4 {
  animation-delay: 0.42s;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 40px;
  }

  header {
    position: relative;
  }

  .cta-row {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

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