/* ============================================
   Cloud Apps — AI Apps. Built Better.
   Dark, professional design system
   ============================================ */

:root {
  --midnight: #0F172A;
  --deep: #0B1120;
  --card: rgba(148, 163, 184, 0.06);
  --card-solid: #121B30;
  --border: rgba(148, 163, 184, 0.16);
  --electric: #2563EB;
  --violet: #7C3AED;
  --mint: #14BBA6;
  --text: #F8FAFC;
  --text-soft: #94A3B8;
  --grad: linear-gradient(90deg, #2563EB, #7C3AED 55%, #14BBA6);
  --grad-btn: linear-gradient(120deg, #2563EB, #7C3AED);
  --font-head: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--midnight);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: var(--electric);
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: block;
  width: 38px;
  height: 38px;
  transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a:not(.btn) {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: rgba(148, 163, 184, 0.45);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.88rem;
}

/* ============================================
   Slide deck
   ============================================ */

.deck {
  display: flex;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.deck::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 96px 0 56px;
}

.slide > .container {
  position: relative;
  z-index: 2;
}

/* Decorative glows */

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow-blue { background: rgba(37, 99, 235, 0.28); }
.glow-purple { background: rgba(124, 58, 237, 0.25); }
.glow-mint { background: rgba(20, 187, 166, 0.16); }

/* Slide dots nav */

.slide-dots {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: row;
  gap: 14px;
}

.slide-dots a {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.slide-dots a:hover {
  background: rgba(148, 163, 184, 0.7);
}

.slide-dots a.active {
  background: var(--electric);
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.8);
}

/* Section headers */

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mint);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* ============================================
   Slide 1 — Hero
   ============================================ */

.hero .glow-blue { width: 480px; height: 480px; top: -140px; left: -140px; }
.hero .glow-purple { width: 420px; height: 420px; bottom: -120px; right: 8%; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.07);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 26px;
  animation: rise-in 0.7s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.9);
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  margin-bottom: 22px;
  animation: rise-in 0.7s ease 0.1s both;
}

.hero-copy p {
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 34px;
  animation: rise-in 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: rise-in 0.7s ease 0.3s both;
}

/* Phone mockup */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  animation: rise-in 0.9s ease 0.25s both;
}

.phone {
  position: relative;
  width: 280px;
  padding: 10px;
  background: #1E293B;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 44px;
  box-shadow: 0 40px 80px rgba(2, 6, 23, 0.6), 0 0 60px rgba(37, 99, 235, 0.15);
  transform: rotate(3deg);
  transition: transform 0.4s ease;
}

.phone:hover {
  transform: rotate(0deg) translateY(-6px);
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 20px;
  background: #0B1120;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  aspect-ratio: 9 / 19;
  background: linear-gradient(170deg, #0F172A, #101A33 55%, #131A3E);
  border-radius: 36px;
  padding: 54px 16px 16px;
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(20, 187, 166, 0.9);
}

.chat-greet {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.chat-greet span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-soft);
  margin-top: 4px;
}

.chat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
}

.chat-card .cc-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(37, 99, 235, 0.18);
  color: #7DA7FF;
  flex-shrink: 0;
}

.chat-card .cc-icon svg {
  width: 16px;
  height: 16px;
}

.chat-card strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.chat-card span {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.chat-input {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.chat-input .send {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
}

.chat-input .send svg {
  width: 13px;
  height: 13px;
}

/* ============================================
   Slide 2 — Services
   ============================================ */

.services .glow-purple { width: 440px; height: 440px; top: -160px; right: -120px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  padding: 26px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.07);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.06);
  color: #7DA7FF;
  margin-bottom: 16px;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 7px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ============================================
   Slide 3 — Process
   ============================================ */

.process .glow-blue { width: 420px; height: 420px; bottom: -160px; left: -120px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.process-step {
  position: relative;
  text-align: center;
  padding: 28px 16px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 187, 166, 0.5);
}

.step-num {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 4px auto 14px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.06);
  color: #6EE7D2;
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 7px;
}

.process-step p {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ============================================
   Slide 4 — Contact + footer
   ============================================ */

.contact {
  flex-direction: column;
  justify-content: center;
}

.contact .glow-blue { width: 500px; height: 500px; top: 10%; left: 50%; transform: translateX(-50%); opacity: 0.7; }

.contact-inner {
  text-align: center;
  max-width: 680px;
  margin: auto;
}

.contact-inner h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 18px;
}

.contact-inner > p {
  color: var(--text-soft);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.contact-meta {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 44px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.contact-meta a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-meta a:hover {
  color: var(--text);
}

.contact-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-meta svg {
  width: 15px;
  height: 15px;
  color: var(--electric);
}

/* Footer bar (inside last slide, and standalone on legal pages) */

.site-footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 26px 0 0;
}

.slide .site-footer {
  padding-top: 26px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.footer-brand .logo-mark {
  width: 30px;
  height: 30px;
}

.footer-links {
  display: flex;
  gap: 26px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.footer-copy {
  color: var(--text-soft);
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Standalone footer on legal pages */

body:not(.deck-page) .site-footer {
  padding: 30px 0;
  background: var(--deep);
}

/* ============================================
   Contact Modal
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(460px, 100%);
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: 0 40px 90px rgba(2, 6, 23, 0.7);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.modal h3 {
  font-size: 1.35rem;
}

.modal-sub {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text);
  transform: rotate(90deg);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--text);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(148, 163, 184, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

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

.modal-note {
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--text-soft);
  text-align: center;
}

/* ============================================
   Legal pages (Privacy / Terms)
   ============================================ */

.legal-hero {
  padding: 150px 0 60px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(37, 99, 235, 0.18), transparent 70%),
    radial-gradient(600px 300px at 85% 10%, rgba(124, 58, 237, 0.16), transparent 70%),
    var(--deep);
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  margin-bottom: 10px;
}

.legal-hero .updated {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.legal-body h2 {
  font-size: 1.3rem;
  margin: 38px 0 13px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--text-soft);
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.legal-body ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-body strong {
  color: var(--text);
}

/* ============================================
   Animations
   ============================================ */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .deck {
    scroll-behavior: auto;
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1060px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  /* Slides become normal flowing sections on small screens */
  .deck {
    display: block;
    height: auto;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  .slide {
    width: auto;
    height: auto;
    min-height: auto;
    padding: 100px 0 60px;
  }

  .slide-dots {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links .nav-hide-mobile {
    display: none;
  }

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

  .process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .phone {
    width: 250px;
  }
}
