/* CicoApps — Premium sayfa stili (ui-ux-pro-max design system)
   Pattern: scroll-storytelling · Style: social-proof · Sky blue + orange CTA · DM Sans */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary: #0ea5e9;
  --primary-light: #38bdf8;
  --primary-dark: #0369a1;
  --cta: #f97316;
  --cta-dark: #ea580c;
  --bg: #f0f9ff;
  --surface: #ffffff;
  --ink: #0c4a6e;
  --ink-soft: #1e5a82;
  --muted: #5b7c95;
  --line: #d8ecf8;
  --line-strong: #b9dcf0;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(12, 74, 110, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(12, 74, 110, 0.18);
  --shadow-lg: 0 30px 70px -28px rgba(12, 74, 110, 0.32);
  --shadow-cta: 0 14px 32px -10px rgba(249, 115, 22, 0.45);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3, h4 {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 700;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; position: relative; }

/* ===== ANIMATED MESH BACKGROUND ===== */
.mesh-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.mesh-bg::before,
.mesh-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.mesh-bg::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--primary-light), transparent 70%);
  top: -160px; right: -120px;
  animation: floatA 18s ease-in-out infinite;
}
.mesh-bg::after {
  width: 440px; height: 440px;
  background: radial-gradient(circle, #fdba74, transparent 70%);
  bottom: -140px; left: -100px;
  animation: floatB 22s ease-in-out infinite;
}
@keyframes floatA {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-50px,60px) scale(1.12); }
}
@keyframes floatB {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(60px,-40px) scale(1.15); }
}

/* ===== FLOATING NAVBAR ===== */
.nav {
  position: fixed;
  top: 14px; left: 14px; right: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s, transform 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.15rem; color: var(--ink);
}
.nav-logo-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--cta));
  color: #fff; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; font-size: 0.92rem; font-weight: 500;
  color: var(--muted); border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg); }
.nav-cta-btn {
  background: var(--ink) !important; color: #fff !important;
  font-weight: 600 !important; cursor: pointer;
}
.nav-cta-btn:hover { background: var(--primary-dark) !important; }
.nav-toggle {
  display: none; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 18px; height: 2px;
  background: var(--ink); transform: translateX(-50%); transition: 0.2s;
}
.nav-toggle span { top: 50%; transform: translate(-50%,-50%); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 12px;
  font-family: "DM Sans", sans-serif; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s, background 0.2s;
}
.btn-cta {
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  color: #fff; box-shadow: var(--shadow-cta);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(249,115,22,.55); }
.btn-wa {
  background: #25d366; color: #fff;
  box-shadow: 0 12px 28px -12px rgba(37,211,102,.5);
}
.btn-wa:hover { transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.7); color: var(--ink);
  border-color: var(--line-strong); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; border-color: var(--primary); }

/* ===== HERO ===== */
.hero { padding: 150px 0 90px; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(14,165,233,.1); color: var(--primary-dark);
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(14,165,233,.2);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cta); box-shadow: 0 0 0 0 rgba(249,115,22,.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249,115,22,.5); }
  70% { box-shadow: 0 0 0 9px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 22px 0 0; letter-spacing: -0.035em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), var(--cta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  font-size: 1.16rem; color: var(--ink-soft);
  margin-top: 20px; max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 28px; font-size: 0.88rem; color: var(--muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--primary); }

/* ===== HERO VISUAL (glassmorphism dashboard mock) ===== */
.hero-card {
  position: relative;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.hero-card-row {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  font-size: 0.9rem; color: var(--ink-soft);
  transition: transform 0.25s, box-shadow 0.25s;
}
.hero-card-row:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.hero-card-row strong { color: var(--ink); }
.hero-card-ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
}
.hero-card-ic svg { width: 20px; height: 20px; }
.ic-sky { background: rgba(14,165,233,.12); color: var(--primary); }
.ic-orange { background: rgba(249,115,22,.12); color: var(--cta); }
.ic-green { background: rgba(16,185,129,.12); color: #10b981; }

/* ===== SECTION HEADINGS ===== */
.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; position: relative; z-index: 1; }
.sec-eyebrow {
  display: inline-block; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.74rem; font-weight: 700;
  color: var(--cta); margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ===== STAT COUNTER STRIP ===== */
.stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat {
  text-align: center; padding: 28px 18px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.stat-num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(120deg, var(--primary), var(--cta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }

/* ===== PROBLEM CARDS ===== */
.prob-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; max-width: 980px; margin: 0 auto;
}
.prob-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.prob-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.prob-ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(239,68,68,.1); color: #ef4444;
  display: grid; place-items: center; margin-bottom: 14px;
}
.prob-ic svg { width: 22px; height: 22px; }
.prob-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.prob-card p { font-size: 0.92rem; color: var(--muted); }

/* ===== FEATURE GRID (glass cards) ===== */
.feat-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feat-card {
  position: relative; overflow: hidden;
  padding: 26px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s;
}
.feat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cta));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feat-card:hover::before { transform: scaleX(1); }
.feat-ic {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(14,165,233,.6);
  transition: transform 0.35s;
}
.feat-card:hover .feat-ic { transform: scale(1.1) rotate(-5deg); }
.feat-ic svg { width: 24px; height: 24px; }
.feat-card h4 { font-size: 1.12rem; margin: 16px 0 7px; }
.feat-card p { font-size: 0.93rem; color: var(--muted); line-height: 1.6; }

/* ===== JOURNEY (scroll storytelling) ===== */
.journey {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
}
.journey-line {
  position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px;
  background: var(--line-strong);
}
.journey-fill {
  position: absolute; left: 27px; top: 10px; width: 2px;
  background: linear-gradient(var(--primary), var(--cta));
  height: 0; transition: height 0.1s linear;
}
.journey-step {
  position: relative; padding-left: 68px; padding-bottom: 36px;
}
.journey-step:last-child { padding-bottom: 0; }
.journey-dot {
  position: absolute; left: 16px; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700; color: var(--primary);
  z-index: 2;
}
.journey-step h3 { font-size: 1.3rem; }
.journey-step p { color: var(--muted); margin-top: 5px; }

/* ===== TESTIMONIAL (social proof) ===== */
.testi-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.testi-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-stars { display: flex; gap: 2px; color: #f59e0b; }
.testi-stars svg { width: 17px; height: 17px; }
.testi-quote { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.testi-foot { display: flex; align-items: center; gap: 12px; padding-top: 13px; border-top: 1px solid var(--line); }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cta));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem;
}
.testi-name { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.testi-role { font-size: 0.8rem; color: var(--muted); }

/* ===== FAQ ===== */
.faq-wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 11px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--primary-light); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 19px 22px;
  font-weight: 600; font-size: 0.98rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q-ic {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px;
  background: rgba(14,165,233,.1); color: var(--primary);
  display: grid; place-items: center; transition: transform 0.25s;
}
.faq-item[open] .faq-q-ic { transform: rotate(45deg); }
.faq-q-ic svg { width: 15px; height: 15px; }
.faq-item p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 0.94rem; }

/* ===== FINAL CTA ===== */
.final-cta {
  position: relative; z-index: 1; overflow: hidden;
  max-width: 880px; margin: 0 auto;
  padding: 60px 44px; text-align: center;
  background: linear-gradient(140deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.final-cta::before {
  content: ""; position: absolute; width: 360px; height: 360px;
  border-radius: 50%; background: rgba(249,115,22,.3);
  filter: blur(90px); top: -120px; right: -80px;
}
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); position: relative; }
.final-cta p { color: rgba(255,255,255,.85); margin-top: 12px; position: relative; }
.final-cta .hero-actions { justify-content: center; margin-top: 28px; }
.final-cta .btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.final-cta .btn-ghost:hover { background: rgba(255,255,255,.25); }

/* ===== FOOTER ===== */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 38px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 28em; }
.footer h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 15px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer ul a { color: var(--ink-soft); font-size: 0.9rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; text-align: center; font-size: 0.84rem; color: var(--muted); }

/* ===== FLOATING WHATSAPP ===== */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 18px; border-radius: 999px;
  background: #25d366; color: #fff; font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 14px 32px -10px rgba(37,211,102,.55);
  transition: transform 0.2s;
}
.fab:hover { transform: scale(1.05); }
.fab svg { width: 22px; height: 22px; }

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .feat-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  section { padding: 64px 0; }
  .hero { padding: 124px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .feat-grid, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .final-cta { padding: 44px 24px; }
  .hero-actions .btn { width: 100%; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
