/* Dhun Landing — Premium Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0c0a14;
  --surface: #151222;
  --surface-2: #1e1a2e;
  --border: rgba(124, 58, 237, 0.25);
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --pink: #ec4899;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  --glass: rgba(21, 18, 34, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 58, 237, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(236, 72, 153, 0.12), transparent);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink); }

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(12, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-desktop {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-desktop a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-desktop a:hover,
.nav-desktop a.active { color: var(--text); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 20, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
  list-style: none;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border);
  color: var(--purple-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover { color: #fff; box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

/* Promo visuals */
.promo-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 1s 0.4s ease both;
}

.promo-visual img {
  width: min(100%, 560px);
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), 0 0 60px rgba(124, 58, 237, 0.15);
}

.promo-section {
  padding: 4rem 0;
}

.promo-section-banner {
  padding-top: 0;
}

.promo-showcase,
.promo-banner {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.promo-showcase img,
.promo-banner img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .promo-visual {
    order: -1;
  }

  .promo-visual img {
    width: min(100%, 420px);
  }
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeUp 1s 0.4s ease both, float 6s ease-in-out infinite;
}

.phone-frame {
  width: min(280px, 70vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(145deg, #2d2640, #1a1528);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(124, 58, 237, 0.2);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0c0a14;
  border-radius: 12px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(40px);
}

/* Sections */
section { padding: 5rem 0; position: relative; z-index: 1; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Glass cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--shadow);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* App Preview */
.preview-carousel {
  position: relative;
  overflow: hidden;
}

.preview-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.preview-track::-webkit-scrollbar { display: none; }

.preview-slide {
  flex: 0 0 min(260px, 75vw);
  scroll-snap-align: center;
}

.preview-phone {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.preview-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.preview-caption {
  text-align: center;
  margin-top: 1rem;
}

.preview-caption h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.preview-caption p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition), border-color var(--transition);
}

.carousel-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--purple);
}

/* Safety */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.safety-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.safety-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Coming Soon */
.coming-soon {
  text-align: center;
}

.coming-soon .glass-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.coming-soon h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--pink);
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s ease infinite;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-item a,
.contact-item p {
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
}

.contact-entity {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.contact-info {
  max-width: 720px;
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-topics {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-topics li {
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.contact-topics strong {
  color: var(--text);
}

#contact-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  width: 100%;
}

#contact-form .form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0.5rem;
}

#contact-form label {
  display: block;
  width: 100%;
}

#contact-form input,
#contact-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.contact-form-card {
  max-width: 560px;
  margin: 0 auto 2rem;
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.form-group .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease-out 0s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(156, 163, 175, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  justify-self: start;
  margin-top: 0.25rem;
}

.contact-footer-info {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  padding: 1.25rem 2rem 0;
}

.contact-footer-info p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-footer-info p:last-child {
  margin-bottom: 0;
}

.contact-footer-info span {
  color: var(--text-muted);
  margin-right: 0.35rem;
}

.contact-footer-info a {
  font-weight: 600;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  min-height: 1.25rem;
}

.form-status.success {
  color: #86efac;
}

.form-status.error {
  color: #fca5a5;
}

.form-status.loading {
  color: var(--text-muted);
}

/* Legal pages */
.page-hero {
  padding: 8rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p { color: var(--text-muted); }

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--purple-light);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-notice {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.legal-notice p {
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
  padding: 3.5rem 0 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-nav h4,
.footer-contact h4,
.footer-legal h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }

.footer-contact p { margin-bottom: 0.4rem; font-size: 0.9rem; }

.footer-legal {
  border-left: 2px solid var(--purple);
  padding-left: 1.25rem;
}

.legal-entity-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.legal-entity-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--purple-light); }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .phone-mockup { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; border-left: none; border-top: 2px solid var(--purple); padding-left: 0; padding-top: 1.25rem; }
}

@media (max-width: 640px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
}
