/* =============================================
   ULUNAVIA — AI Agency Website
   Dark Premium Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --color-bg: #07070F;
  --color-bg-elevated: #07070F;
  --color-bg-card: #D8C9B0;
  --color-bg-card-hover: #E0D2BC;
  --color-accent: #9D8FFF;
  --color-accent-hover: #B5AAFF;
  --color-accent-soft: rgba(157, 143, 255, 0.12);
  --color-accent-glow: rgba(157, 143, 255, 0.28);
  --color-warm: #7DD3FC;
  --color-warm-soft: rgba(125, 211, 252, 0.08);
  --color-text: #d6d3e8;
  --color-text-heading: #f5f3ff;
  --color-text-muted: #8a879e;
  --color-border: rgba(139, 123, 247, 0.12);
  --color-border-hover: rgba(139, 123, 247, 0.3);
  --color-glass: rgba(22, 22, 37, 0.75);
  --color-glass-border: rgba(255, 255, 255, 0.08);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 100px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(139, 123, 247, 0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  background-image:
    /* Crosshatch line 1 (45deg) */
    repeating-linear-gradient(
      45deg,
      rgba(100, 65, 30, 0.15) 0px,
      rgba(100, 65, 30, 0.15) 1px,
      transparent 1px,
      transparent 48px
    ),
    /* Crosshatch line 2 (-45deg) */
    repeating-linear-gradient(
      -45deg,
      rgba(100, 65, 30, 0.12) 0px,
      rgba(100, 65, 30, 0.12) 1px,
      transparent 1px,
      transparent 48px
    ),
    /* Small dots at intersections */
    radial-gradient(circle, rgba(120, 80, 40, 0.25) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 24px 24px;
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(139, 104, 69, 0.12);
  border: 1px solid rgba(160, 120, 70, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: #B08860;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-text-heading);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title .accent {
  background: linear-gradient(110deg, #D8C4A8 0%, #A07850 55%, #7A5538 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

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

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 15, 26, 0.9);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border);
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-heading);
  letter-spacing: 1.5px;
  padding: 0 16px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links a {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text-heading);
  background: rgba(139, 104, 69, 0.15);
}

.nav-cta {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #8B6845;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  margin-left: 8px;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: #A07C55;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(139, 104, 69, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--color-text-heading);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #1a1a35 0%, var(--color-bg) 70%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(139, 123, 247, 0.1) 0%, rgba(240, 194, 122, 0.04) 50%, transparent 70%);
  pointer-events: none;
}

/* Floating orb decorations */
.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240, 194, 122, 0.06) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--color-text-heading);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-title .accent {
  background: linear-gradient(110deg, #E8D9C4 0%, #B08860 45%, #7E5C3A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(140, 100, 60, 0.35));
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #b8b4d0;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #8B6845;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(139, 104, 69, 0.35);
}

.hero-cta:hover {
  background: #A07C55;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 104, 69, 0.5);
}

/* =============================================
   PROCESS
   ============================================= */
.process {
  padding: 100px 24px;
  background: var(--color-bg);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.process-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(80, 50, 20, 0.12);
  border: 1px solid rgba(160, 120, 70, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(80, 50, 20, 0.18);
  border-color: rgba(160, 120, 70, 0.4);
  background: var(--color-bg-card-hover);
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B6845, #C4A07A);
  opacity: 0;
  transition: var(--transition);
}

.process-card:hover::before {
  opacity: 1;
}

.process-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #A07850, #7A5538);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.45;
  margin-bottom: 16px;
  line-height: 1;
}

.process-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(139, 104, 69, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.process-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2C1F10;
  margin-bottom: 12px;
}

.process-card p {
  font-size: 0.92rem;
  color: #5C4A32;
  line-height: 1.7;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: 100px 24px;
  background: var(--color-bg);
}

/* Integration Hub */
.integration-hub {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin-bottom: 60px;
  border: 1px solid rgba(160, 120, 70, 0.2);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(80, 50, 20, 0.12);
}

.hub-center {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-warm));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 30px rgba(139, 123, 247, 0.3);
}

.hub-center svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.hub-node {
  position: absolute;
  width: 60px;
  height: 60px;
  background: #C8B898;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(160, 120, 70, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(80, 50, 20, 0.1);
  z-index: 2;
  transition: var(--transition);
}

.hub-node:hover {
  transform: scale(1.12);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-border-hover);
}

.hub-node:nth-child(2) { top: 40px; left: 25%; }
.hub-node:nth-child(3) { top: 40px; right: 25%; }
.hub-node:nth-child(4) { left: 10%; top: 50%; transform: translateY(-50%); }
.hub-node:nth-child(5) { right: 10%; top: 50%; transform: translateY(-50%); }
.hub-node:nth-child(6) { bottom: 40px; left: 25%; }
.hub-node:nth-child(7) { bottom: 40px; right: 25%; }

/* Connection lines */
.hub-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hub-lines line {
  stroke: var(--color-accent);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  opacity: 0.2;
}

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

.service-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid rgba(160, 120, 70, 0.2);
  box-shadow: 0 2px 16px rgba(80, 50, 20, 0.12);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(80, 50, 20, 0.18);
  border-color: rgba(160, 120, 70, 0.4);
  background: var(--color-bg-card-hover);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(139, 104, 69, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2C1F10;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: #5C4A32;
  line-height: 1.7;
}

/* =============================================
   BENEFITS
   ============================================= */
.benefits {
  padding: 100px 24px;
  background: var(--color-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.benefit-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid rgba(160, 120, 70, 0.2);
  box-shadow: 0 2px 16px rgba(80, 50, 20, 0.12);
  transition: var(--transition);
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(80, 50, 20, 0.18);
  border-color: rgba(160, 120, 70, 0.4);
  background: var(--color-bg-card-hover);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: rgba(139, 104, 69, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2C1F10;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.88rem;
  color: #5C4A32;
  line-height: 1.6;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: 100px 24px;
  background: var(--color-bg);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.3rem;
  color: var(--color-text);
  line-height: 1.9;
  font-weight: 400;
}

.about-founder {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: var(--color-bg-card);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(160, 120, 70, 0.25);
  box-shadow: 0 2px 16px rgba(80, 50, 20, 0.12);
}

.founder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFFFFF, #8B6845);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E1810;
  font-weight: 800;
  font-size: 1rem;
}

.founder-info {
  text-align: left;
}

.founder-info .name {
  font-weight: 700;
  color: #2C1F10;
  font-size: 0.95rem;
}

.founder-info .role {
  font-size: 0.82rem;
  color: #5C4A32;
}

/* =============================================
   FAQ
   ============================================= */
.faq {
  padding: 100px 24px;
  background: var(--color-bg);
}

.faq-list {
  max-width: 750px;
  margin: 48px auto 0;
}

.faq-item {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid rgba(160, 120, 70, 0.2);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(80, 50, 20, 0.08);
}

.faq-item:hover {
  border-color: var(--color-border-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  color: #2C1F10;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: #8B6845;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(139, 104, 69, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #8B6845;
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: #8B6845;
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer-inner {
  padding: 0 28px 22px;
  font-size: 0.92rem;
  color: #5C4A32;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* =============================================
   CTA
   ============================================= */
.cta-section {
  padding: 100px 24px;
  background: var(--color-bg);
}

.cta-box {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(160, 120, 70, 0.2);
  box-shadow: 0 4px 24px rgba(80, 50, 20, 0.15);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 123, 247, 0.12) 0%, rgba(240, 194, 122, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240, 194, 122, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #2C1F10;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  color: #5C4A32;
  font-size: 1.05rem;
  margin-bottom: 36px;
  position: relative;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: linear-gradient(135deg, #FFFFFF, #8B6845);
  color: #1E1810;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(139, 104, 69, 0.3);
  position: relative;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 104, 69, 0.45);
  filter: brightness(1.1);
}

.cta-free {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  position: relative;
  opacity: 0.6;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 48px 24px 32px;
  text-align: center;
  background: var(--color-bg);
  border-top: 1px solid rgba(200, 180, 140, 0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: var(--transition);
}

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

.footer-email {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer-email a {
  color: var(--color-accent);
  font-weight: 500;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 12px;
    left: 16px;
    right: 16px;
    transform: none;
    width: auto;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 12px 0;
    order: 3;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 18px;
    text-align: center;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 120px 20px 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.3rem;
  }

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

  .integration-hub {
    min-height: 280px;
    padding: 40px 20px;
  }

  .hub-node {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .hub-node:nth-child(2) { left: 10%; }
  .hub-node:nth-child(3) { right: 10%; }
  .hub-node:nth-child(4) { left: 5%; }
  .hub-node:nth-child(5) { right: 5%; }
  .hub-node:nth-child(6) { left: 10%; }
  .hub-node:nth-child(7) { right: 10%; }

  .cta-box {
    padding: 60px 24px;
  }

  .about-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .process-card,
  .service-card {
    padding: 32px 24px;
  }
}
