/* ============================================
   DOMOKAN HOMEPAGE — style.css
   ============================================ */

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

:root {
  --red: #ea5834;
  --blue: #38bee8;
  --green: #68ba7c;
  --dark: #141414;
  --text: #1a1a1a;
  --text-secondary: #64646e;
  --bg: #fafaf8;
  --bg-alt: #f3f3f0;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--dark);
  color: var(--white);
  border-radius: 50px;
}

.btn-primary:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-white {
  background: var(--white);
  color: var(--dark);
}

.btn-white:hover {
  background: #f0f0f0;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.35s ease;
}

.navbar-scrolled {
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-picto {
  height: 26px;
  width: auto;
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(234, 88, 52, 0.06) 0%,
    rgba(56, 190, 232, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-highlight {
  background: linear-gradient(135deg, var(--red), var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 72px;
}

/* ---------- Hero Screenshot ---------- */
.hero-mockup {
  width: 100%;
  max-width: 960px;
  position: relative;
}

.hero-mockup::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(
    135deg,
    rgba(234, 88, 52, 0.3),
    rgba(56, 190, 232, 0.2),
    rgba(104, 186, 124, 0.2)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-mockup:hover::before {
  opacity: 1;
}

.hero-screenshot {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.hero-mockup:hover .hero-screenshot {
  transform: translateY(-4px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.14),
    0 12px 28px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c43d1a;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Features ---------- */
.features {
  padding: 110px 0;
  background: var(--bg-alt);
  position: relative;
}

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

.feature-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: all var(--transition);
  position: relative;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 40%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: transparent;
}

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

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  margin-bottom: 22px;
  transition: transform var(--transition);
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.08);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Showcase ---------- */
.showcase {
  padding: 110px 0;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.showcase-item:last-child {
  margin-bottom: 0;
}

.showcase-item--reverse {
  grid-template-columns: 1.4fr 1fr;
}

.showcase-item--reverse .showcase-text {
  order: 2;
}

.showcase-item--reverse .showcase-image {
  order: 1;
}

.showcase-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text);
}

.showcase-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.showcase-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.showcase-image::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(
    135deg,
    rgba(234, 88, 52, 0.2),
    rgba(56, 190, 232, 0.15),
    rgba(104, 186, 124, 0.15)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.showcase-image:hover::before {
  opacity: 1;
}

.showcase-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.showcase-image:hover img {
  transform: translateY(-3px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 110px 0;
}

.cta-inner {
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    #1f1f1f 50%,
    #2a2a2a 100%
  );
  border-radius: 28px;
  padding: 90px 48px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(234, 88, 52, 0.18) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-inner::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(
    circle,
    rgba(56, 190, 232, 0.14) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.cta-inner .btn {
  position: relative;
  z-index: 1;
}

/* ---------- Skip Link (accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--dark);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.footer-picto {
  height: 22px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 28px;
}

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

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

.footer-copy {
  font-size: 0.8rem;
  color: #6e6e6e;
}

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger feature cards */
.feature-card:nth-child(2).fade-up {
  transition-delay: 0.08s;
}
.feature-card:nth-child(3).fade-up {
  transition-delay: 0.16s;
}
.feature-card:nth-child(4).fade-up {
  transition-delay: 0.24s;
}
.feature-card:nth-child(5).fade-up {
  transition-delay: 0.32s;
}
.feature-card:nth-child(6).fade-up {
  transition-delay: 0.4s;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-item,
  .showcase-item--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .showcase-item--reverse .showcase-text {
    order: 0;
  }
  .showcase-item--reverse .showcase-image {
    order: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 120px 0 60px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-actions {
    margin-bottom: 48px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .cta-inner {
    padding: 64px 24px;
    border-radius: 20px;
  }
  .navbar-inner {
    gap: 8px;
  }
  .navbar-brand {
    font-size: 1.05rem;
  }
  .btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  .features,
  .cta-section,
  .showcase {
    padding: 70px 0;
  }
  .showcase-item {
    margin-bottom: 48px;
  }
  .section-header {
    margin-bottom: 36px;
  }
}
