/* =====================================================================
   DaelOffice — Landing Page Styles
   Brand identity matched to the DaelOffice app:
   brandNavy #082449 · brandBlue #135C9E · brandAccent #0CB5FE
   ===================================================================== */

:root {
  --brand-navy: #082449;
  --brand-blue: #135c9e;
  --brand-accent: #0cb5fe;
  --brand-accent-soft: #5bd4ff;
  --brand-deep: #041428;
  --gradient-accent: linear-gradient(90deg, #0cb5fe, #5bd4ff);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-full: 999px;
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --transition-theme: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ================= Dark theme (default) ================= */
:root,
:root[data-theme="dark"] {
  --bg-body: #041428;
  --bg-elevated: #0a1e3a;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-strong: rgba(255, 255, 255, 0.06);
  --bg-header: rgba(4, 20, 40, 0.78);
  --bg-nav: rgba(4, 20, 40, 0.97);
  --bg-soft: linear-gradient(135deg, rgba(19, 92, 158, 0.25), rgba(8, 36, 73, 0.4));
  --bg-features: linear-gradient(180deg, #0a1e3a 0%, #041428 100%);
  --text-primary: #f4f2f8;
  --text-muted: #a8b3c7;
  --border-soft: rgba(255, 255, 255, 0.09);
  --border-med: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(12, 181, 254, 0.35);
  --nav-link-color: rgba(244, 242, 248, 0.82);
  --btn-ghost-bg: rgba(255, 255, 255, 0.06);
  --btn-ghost-border: rgba(255, 255, 255, 0.18);
  --btn-ghost-hover: rgba(255, 255, 255, 0.12);
  --orb-1: #135c9e;
  --orb-2: #0cb5fe;
  --orb-3: #082449;
  --grid-line: rgba(255, 255, 255, 0.035);
  --wave-color: #0a1e3a;
  --hero-logo-bg: rgba(255, 255, 255, 0.06);
  --hero-logo-border: rgba(255, 255, 255, 0.14);
  --shadow-card: 0 18px 45px -18px rgba(4, 20, 40, 0.55);
  --shadow-header: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  --accent-strong: #fff;
  --menu-bar: #fff;
}

/* ================= Light theme ================= */
:root[data-theme="light"] {
  --bg-body: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-strong: #f7f9fc;
  --bg-header: rgba(255, 255, 255, 0.88);
  --bg-nav: #ffffff;
  --bg-soft: linear-gradient(135deg, rgba(19, 92, 158, 0.08), rgba(8, 36, 73, 0.04));
  --bg-features: #ffffff;
  --text-primary: #0b1f3a;
  --text-muted: #5b6b84;
  --border-soft: rgba(8, 36, 73, 0.1);
  --border-med: rgba(8, 36, 73, 0.16);
  --border-accent: rgba(12, 181, 254, 0.5);
  --nav-link-color: rgba(8, 36, 73, 0.78);
  --btn-ghost-bg: rgba(8, 36, 73, 0.05);
  --btn-ghost-border: rgba(8, 36, 73, 0.16);
  --btn-ghost-hover: rgba(8, 36, 73, 0.1);
  --orb-1: transparent;
  --orb-2: transparent;
  --orb-3: transparent;
  --grid-line: transparent;
  --wave-color: #ffffff;
  --hero-logo-bg: rgba(255, 255, 255, 0.85);
  --hero-logo-border: rgba(8, 36, 73, 0.12);
  --shadow-card: 0 18px 45px -22px rgba(8, 36, 73, 0.25);
  --shadow-header: 0 10px 30px -22px rgba(8, 36, 73, 0.35);
  --accent-strong: var(--brand-navy);
  --menu-bar: var(--brand-navy);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: var(--transition-theme);
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Background decorative layers ===== */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; transition: background 0.35s ease; }
.orb-1 { width: 480px; height: 480px; background: var(--orb-1); top: -140px; right: -100px; animation: float 14s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: var(--orb-2); bottom: -120px; left: -120px; opacity: 0.28; animation: float 18s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; background: var(--orb-3); top: 40%; left: 50%; opacity: 0.6; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
}

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

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.header.scrolled {
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; box-shadow: 0 6px 18px -6px rgba(12,181,254,0.5); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.3px; color: var(--text-primary); }
.brand-text small { font-size: 0.72rem; color: var(--text-muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 0.95rem; font-weight: 600; color: var(--nav-link-color);
  position: relative; transition: color 0.25s ease; padding: 6px 0;
}
.nav-link::after {
  content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 2px;
  background: var(--gradient-accent); border-radius: 2px; transition: width 0.3s ease;
}
.nav-link:hover { color: var(--accent-strong); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 22px; border-radius: var(--radius-full);
  background: var(--gradient-accent); color: var(--brand-deep) !important;
  font-weight: 800; box-shadow: 0 8px 22px -8px rgba(12,181,254,0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(12,181,254,0.85); }

/* ===== Theme toggle button ===== */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-full);
  background: var(--btn-ghost-bg); border: 1px solid var(--btn-ghost-border);
  color: var(--text-primary); cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(8deg); border-color: var(--border-accent); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 26px; height: 2.5px; background: var(--menu-bar); border-radius: 3px; transition: 0.3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 170px 0 120px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px; border-radius: var(--radius-full);
  background: rgba(12, 181, 254, 0.12); border: 1px solid var(--border-accent);
  color: var(--brand-accent); font-weight: 700; font-size: 0.92rem;
  margin-bottom: 28px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-accent); position: relative; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--brand-accent); opacity: 0.6; animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}
.hero-logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(12, 181, 254, 0.28));
}
.hero-owner-name {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.25; margin-bottom: 22px;
  color: var(--text-primary);
}
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  max-width: 700px; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 60px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: var(--radius-full);
  font-family: var(--font); font-size: 1rem; font-weight: 800; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: none;
}
.btn-primary {
  background: var(--gradient-accent); color: var(--brand-deep);
  box-shadow: 0 14px 34px -12px rgba(12,181,254,0.75);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 42px -12px rgba(12,181,254,0.9); }
.btn-ghost {
  background: var(--btn-ghost-bg); color: var(--text-primary);
  border: 1px solid var(--btn-ghost-border);
}
.btn-ghost:hover { transform: translateY(-3px); background: var(--btn-ghost-hover); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  width: min(680px, 100%);
}
.stat {
  padding: 22px 14px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 4px;
  backdrop-filter: blur(6px);
  transition: var(--transition-theme);
}
.stat strong { font-size: 1.9rem; font-weight: 900; color: var(--brand-accent); }
.stat span { font-size: 0.85rem; color: var(--text-muted); }

.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; color: var(--wave-color); line-height: 0;
  transition: color 0.35s ease;
}
.hero-wave svg { width: 100%; height: 70px; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: var(--radius-full);
  background: rgba(12, 181, 254, 0.12); border: 1px solid var(--border-accent);
  color: var(--brand-accent); font-size: 0.8rem; font-weight: 700; margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 900; margin-bottom: 14px; color: var(--text-primary); }
.section-sub { color: var(--text-muted); font-size: 1.02rem; }

/* ===== Features ===== */
.features { background: var(--bg-features); transition: background 0.35s ease; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  padding: 30px 26px; border-radius: var(--radius-xl);
  background: var(--bg-card); border: 1px solid var(--border-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(150deg, rgba(12,181,254,0.12), transparent 60%);
  transition: opacity 0.35s ease;
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--border-accent); box-shadow: var(--shadow-card); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #135c9e, #0cb5fe);
  box-shadow: 0 12px 26px -10px rgba(12,181,254,0.7);
}
.feature-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; color: var(--text-primary); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Modules ===== */
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.module-item {
  padding: 22px 20px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 14px; transition: 0.3s ease, background 0.35s ease;
}
.module-item:hover { background: rgba(12, 181, 254, 0.1); border-color: var(--border-accent); transform: translateY(-4px); }
.module-num {
  font-size: 0.85rem; font-weight: 900; color: var(--brand-deep);
  background: var(--gradient-accent); border-radius: 10px; padding: 6px 10px;
}
.module-item h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

/* ===== Download ===== */
.download-card {
  display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center;
  padding: 46px 40px; border-radius: var(--radius-xl);
  background: var(--bg-soft);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-card);
}
.download-icon {
  width: 96px; height: 96px; border-radius: 26px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #135c9e, #0cb5fe);
  box-shadow: 0 16px 34px -12px rgba(12,181,254,0.7);
}
.download-content .section-title { margin-bottom: 16px; }
.download-content p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 22px; }
.download-actions {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.download-note { color: var(--text-muted); font-size: 0.92rem; }

/* ===== About ===== */
.about-card {
  display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center;
  padding: 46px 40px; border-radius: var(--radius-xl);
  background: var(--bg-soft);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-card);
}
.about-icon {
  width: 96px; height: 96px; border-radius: 26px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #135c9e, #0cb5fe);
  box-shadow: 0 16px 34px -12px rgba(12,181,254,0.7);
}
.about-content .section-title { margin-bottom: 16px; }
.about-content p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 22px; }
.about-content p strong { color: var(--brand-accent); }
.about-sign {
  display: flex; align-items: center; gap: 14px; padding-top: 20px;
  border-top: 1px solid var(--border-med);
}
.about-sign span { color: var(--text-muted); font-size: 0.9rem; }
.about-sign strong { font-size: 1.15rem; font-weight: 900; color: var(--accent-strong); position: relative; padding-right: 16px; }
.about-sign strong::before {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 26px; border-radius: 4px; background: var(--gradient-accent);
}

/* ===== CTA ===== */
.cta-card {
  text-align: center; padding: 70px 40px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #135c9e, #082449 55%, #0cb5fe);
  border: 1px solid rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; top: -60%; left: -20%; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,0.08); filter: blur(40px);
}
.cta-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 16px; color: #fff; }
.cta-card p { color: rgba(244, 242, 248, 0.92); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-actions { display: flex; justify-content: center; }
.cta-actions .btn { background: #fff; color: var(--brand-navy); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.5); }
.cta-actions .btn:hover { transform: translateY(-3px); }

/* ===== Footer ===== */
.footer { padding: 40px 0; border-top: 1px solid var(--border-soft); background: var(--bg-card-strong); transition: background 0.35s ease; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.footer-brand strong { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.footer-brand p { font-size: 0.82rem; color: var(--text-muted); }
.copyright { color: var(--text-muted); font-size: 0.9rem; }
.copyright strong { color: var(--brand-accent); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .download-icon { margin-inline: auto; }
  .download-actions { align-items: center; }
  .about-card { grid-template-columns: 1fr; text-align: center; }
  .about-icon { margin-inline: auto; }
  .about-sign { justify-content: center; }
}

@media (max-width: 720px) {
  .hero { padding: 140px 0 100px; }
  .hero-brand-row { flex-direction: column; gap: 10px; }
  .hero-logo { width: 130px; height: 130px; }
  .hero-owner-name { white-space: normal; text-align: center; }
  .nav {
    position: fixed; top: 0; right: -100%; width: 78%; height: 100vh;
    flex-direction: column; align-items: flex-start; gap: 8px;
    background: var(--bg-nav); padding: 100px 34px; z-index: 90;
    transition: right 0.4s ease; border-left: 1px solid var(--border-soft);
  }
  .nav.open { right: 0; }
  .nav-link { font-size: 1.05rem; padding: 12px 0; }
  .nav-cta { margin-top: 12px; }
  .menu-toggle { display: flex; z-index: 110; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .features-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { justify-content: center; }
}
