/* =========================================
   Creative Automation One-Page (Draft v1)
   White background + "automation purple" accent
   ========================================= */

:root{
  --bg: #ffffff;
  --text: #0b1020;
  --muted: #5b6478;
  --border: rgba(12, 18, 36, .12);
  --shadow: 0 18px 50px rgba(12,18,36,.10);
  --shadow2: 0 10px 30px rgba(12,18,36,.08);

  /* Accent palette (clean + premium) */
  --accent: #6D28D9;          /* deep purple */
  --accent2: #22C55E;         /* optional green pop (used subtly) */
  --accentSoft: rgba(109,40,217,.12);

  --radius: 18px;
  --radius2: 26px;

  --container: 1100px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.skip{
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip:focus{ left: 10px; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* TOPBAR */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12,18,36,.08);
}
.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,0) 40%),
    linear-gradient(135deg, var(--accent), #9D4EDD);
  box-shadow: 0 10px 26px rgba(109,40,217,.25);
}
.brand__name{ font-weight: 700; letter-spacing: -0.02em; }
.brand__tag{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.brand--sm .brand__mark{ width: 28px; height: 28px; border-radius: 10px; }

.nav{
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
  color: rgba(11,16,32,.80);
}
.nav a{ padding: 8px 10px; border-radius: 12px; }
.nav a:hover{ background: rgba(12,18,36,.05); text-decoration: none; }

.menuBtn{
  display: none;
  border: 1px solid rgba(12,18,36,.12);
  background: #fff;
  border-radius: 12px;
  padding: 10px 10px;
  cursor: pointer;
}
.menuBtn span{
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(11,16,32,.70);
  margin: 4px 0;
  border-radius: 2px;
}
.mobileNav{
  display: none;
  padding: 10px 0 18px 0;
  border-top: 1px solid rgba(12,18,36,.06);
}
.mobileNav a{
  display: block;
  padding: 10px 0;
  color: rgba(11,16,32,.85);
}

/* BUTTONS */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(109,40,217,.22);
  background: linear-gradient(180deg, rgba(109,40,217,1), rgba(109,40,217,.92));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(109,40,217,.18);
}
.btn:hover{ text-decoration: none; filter: brightness(1.02); }

.btn--ghost{
  background: #fff;
  color: rgba(11,16,32,.90);
  border: 1px solid rgba(12,18,36,.14);
  box-shadow: none;
}
.btn--ghost:hover{ background: rgba(12,18,36,.04); }

.btn--full{ width: 100%; padding: 14px 16px; border-radius: 16px; }

.pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(109,40,217,.20);
  background: var(--accentSoft);
  color: rgba(11,16,32,.86);
  font-weight: 600;
  font-size: 13px;
}

/* HERO */
.hero{
  position: relative;
  padding: 56px 0 34px 0;
  overflow: clip;
}
.hero__grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
}
.hero h1{
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  margin: 12px 0 14px 0;
  letter-spacing: -0.03em;
}
.sub{
  font-size: 16px;
  line-height: 1.55;
  color: rgba(11,16,32,.78);
  max-width: 52ch;
}
.ctaRow{ display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.miniProof{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.miniProof__item{
  border: 1px solid rgba(12,18,36,.10);
  background: rgba(255,255,255,.70);
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: var(--shadow2);
}
.miniProof__num{ font-weight: 800; letter-spacing: -0.02em; }
.miniProof__label{ font-size: 12px; color: var(--muted); margin-top: 4px; }

.hero__visual{
  position: relative;
  min-height: 390px;
  border-radius: var(--radius2);
  border: 1px solid rgba(12,18,36,.10);
  background:
    radial-gradient(circle at 20% 10%, rgba(109,40,217,.10), rgba(255,255,255,0) 45%),
    radial-gradient(circle at 80% 90%, rgba(34,197,94,.10), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.75));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.heroGlow{
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at 40% 40%, rgba(109,40,217,.16), rgba(255,255,255,0) 60%);
  filter: blur(10px);
  pointer-events: none;
}

.stack{
  position: absolute;
  inset: 0;
  padding: 22px;
}
.card3d{
  position: absolute;
  width: 74%;
  aspect-ratio: 1.15 / 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(12,18,36,.10);
  background: #fff;
  box-shadow: 0 18px 46px rgba(12,18,36,.14);
}
.card3d img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card3d--a{ left: 14%; top: 8%; transform: rotate(-3deg); }
.card3d--b{ left: 6%; top: 28%; transform: rotate(2deg); width: 78%; }
.card3d--c{ left: 18%; top: 48%; transform: rotate(-1deg); width: 70%; opacity: .98; }

.card3d.isFallback img{ display:none; }
.fallbackArt{
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(109,40,217,.35), rgba(255,255,255,0) 44%),
    radial-gradient(circle at 70% 60%, rgba(34,197,94,.22), rgba(255,255,255,0) 48%),
    linear-gradient(135deg, rgba(12,18,36,.06), rgba(255,255,255,.2));
}

/* SECTIONS */
.section{ padding: 62px 0; }
.section--alt{
  background: linear-gradient(180deg, rgba(12,18,36,.03), rgba(255,255,255,0));
  border-top: 1px solid rgba(12,18,36,.06);
  border-bottom: 1px solid rgba(12,18,36,.06);
}
.sectionHead{
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}
.sectionHead h2{
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.muted{ color: var(--muted); }
.small{ font-size: 12px; }
.sectionHead p{ margin: 0; max-width: 72ch; }

/* CARDS */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  border: 1px solid rgba(12,18,36,.10);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow2);
}
.card__icon{
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accentSoft);
  border: 1px solid rgba(109,40,217,.18);
  font-weight: 800;
  margin-bottom: 10px;
}
.card h3{ margin: 0 0 8px 0; letter-spacing: -0.01em; }
.card p{ margin: 0 0 12px 0; color: rgba(11,16,32,.78); line-height: 1.5; }

.bullets{
  margin: 0;
  padding-left: 18px;
  color: rgba(11,16,32,.78);
}
.bullets li{ margin: 6px 0; }

.noteBox{
  margin-top: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(12,18,36,.10);
  background: linear-gradient(180deg, rgba(109,40,217,.08), rgba(255,255,255,1));
  padding: 14px 16px;
}
.noteBox__title{ font-weight: 700; margin-bottom: 4px; }
.noteBox__text{ color: rgba(11,16,32,.78); }

/* STEPS */
.steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.step{
  border-radius: var(--radius);
  border: 1px solid rgba(12,18,36,.10);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow2);
}
.step__num{
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent);
  opacity: .95;
}
.step h3{ margin: 10px 0 6px 0; letter-spacing: -0.01em; }
.step p{ margin: 0; color: rgba(11,16,32,.76); line-height: 1.5; }

/* STATS + QUOTE */
.stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat{
  border-radius: var(--radius);
  border: 1px solid rgba(12,18,36,.10);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow2);
}
.stat__num{
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 26px;
}
.stat__label{ margin-top: 4px; color: var(--muted); }

.quote{
  margin-top: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(12,18,36,.10);
  padding: 16px;
  background: linear-gradient(180deg, rgba(12,18,36,.02), rgba(255,255,255,1));
}
.quote p{ margin: 0; font-weight: 650; letter-spacing: -0.01em; }

/* CONTACT */
.contact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.contact__chips{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(12,18,36,.12);
  background: rgba(255,255,255,.65);
  color: rgba(11,16,32,.78);
  font-weight: 600;
  font-size: 12px;
}

.form{
  border: 1px solid rgba(12,18,36,.10);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.form label{ display: grid; gap: 6px; margin-bottom: 12px; }
.form span{ font-size: 12px; color: rgba(11,16,32,.70); font-weight: 600; }
input, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(12,18,36,.14);
  padding: 12px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
input:focus, textarea:focus{
  border-color: rgba(109,40,217,.35);
  box-shadow: 0 0 0 4px rgba(109,40,217,.12);
}
.formMsg{ margin: 10px 0 0 0; font-size: 13px; color: rgba(11,16,32,.78); }
.hpField{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* FOOTER */
.footer{
  padding: 28px 0 34px 0;
}
.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(12,18,36,.08);
  padding-top: 18px;
}
.footer__right a{ color: rgba(11,16,32,.80); }

/* REVEAL */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.isVisible{
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__visual{ min-height: 360px; }
  .cards{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; }
  .stats{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .miniProof{ grid-template-columns: 1fr; }
  .nav{ display: none; }
  .menuBtn{ display: inline-block; }
  .mobileNav.isOpen{ display: block; }
}
