/* ===================================================================
   Craftus iXcelerator — one-page site
   =================================================================== */

:root{
  --crimson: #C8102E;
  --crimson-dark: #9E0C24;
  --navy: #0B2F6B;
  --navy-dark: #071D46;
  --ink: #10131A;
  --muted: #5B6270;
  --paper: #FFFFFF;
  --surface-alt: #F4F6FB;
  --border: #E4E7EF;

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(11,47,107,0.08);
  --shadow-md: 0 12px 32px rgba(11,47,107,0.14);
  --shadow-lg: 0 24px 60px rgba(7,29,70,0.28);

  --container-w: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img{ max-width: 100%; display: block; }

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

h1, h2, h3{
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy-dark);
}

h2{ font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); }
h3{ font-size: 1.2rem; }

p{ margin: 0 0 1em; }

.container{
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow{ max-width: 760px; }
.center{ text-align: center; margin-left: auto; margin-right: auto; }

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

.icon{
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn .icon{ font-size: 1.15em; flex: none; }
.btn:hover{ transform: translateY(-2px); }

.btn-primary{
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 10px 24px rgba(200,16,46,.35);
}
.btn-primary:hover{ background: var(--crimson-dark); box-shadow: 0 14px 30px rgba(200,16,46,.45); }

.btn-outline-light{
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline-light:hover{ background: #fff; color: var(--navy-dark); }

.btn-ghost-light{
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-ghost-light:hover{ border-color: #fff; background: rgba(255,255,255,.08); }

/* ===================================================================
   Header
   =================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: padding .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled{
  padding: 10px 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo{ width: 38px; height: auto; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.1; }
.brand-name{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-dark);
  transition: color .25s ease;
}
.brand-by{ font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--crimson); font-weight: 700; }

.site-header:not(.is-scrolled) .brand-name{ color: #fff; }
.site-header:not(.is-scrolled) .brand-by{ color: #ffd7dd; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a{
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
  opacity: .9;
  transition: opacity .2s ease, color .2s ease;
}
.site-header.is-scrolled .main-nav a{ color: var(--navy-dark); }
.main-nav a:hover{ opacity: 1; }

.main-nav .nav-cta{
  background: var(--crimson);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 1;
}
.main-nav .nav-cta:hover{ background: var(--crimson-dark); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  cursor: pointer;
}
.site-header.is-scrolled .nav-toggle{ background: rgba(11,47,107,.08); }
.nav-toggle span{
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease, background .25s ease;
}
.site-header.is-scrolled .nav-toggle span{ background: var(--navy-dark); }

/* ===================================================================
   Hero
   =================================================================== */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero-carousel{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slides{ position: absolute; inset: 0; }
.hero-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active{ opacity: 1; }
.hero-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,20,45,.72) 0%, rgba(7,20,45,.55) 40%, rgba(7,20,45,.82) 100%);
  z-index: 1;
}

.hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 90px;
  padding-bottom: 70px;
}

.hero-logo{
  width: 74px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}

.eyebrow, .section-eyebrow{
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 12px;
}
.hero .eyebrow{ color: #ff8fa0; }

.hero h1{
  color: #fff;
  font-size: clamp(2.4rem, 1.7rem + 3.5vw, 4.2rem);
  font-weight: 800;
  margin-bottom: .35em;
}
.hero h1 span{ color: #ff5c73; }

.hero-tagline{
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  color: rgba(255,255,255,.92);
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(7,20,45,.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
  font-size: 1.3rem;
}
.hero-arrow:hover{ background: rgba(200,16,46,.55); }
.hero-arrow--prev{ left: 18px; }
.hero-arrow--next{ right: 18px; }

.hero-dots{
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 9px;
}
.hero-dots button{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.hero-dots button.is-active{
  background: var(--crimson);
  transform: scale(1.3);
}

.scroll-cue{
  position: absolute;
  bottom: 22px;
  right: 26px;
  z-index: 3;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(6px); }
}

/* ===================================================================
   Sections
   =================================================================== */
.section{ padding: 96px 0; }
.section.alt{ background: var(--surface-alt); }

.section-eyebrow{ color: var(--crimson); }

.lead{
  font-size: 1.1rem;
  color: var(--muted);
}

/* Pillars */
.pillars{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.pillar{
  text-align: center;
  padding: 30px 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pillar-icon{
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.pillar p{ color: var(--muted); margin: 0; }

/* Feature grid */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.feature-card{
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon{
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(200,16,46,.1);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.feature-card p{ color: var(--muted); margin: 0; }

/* Screenshot callout (run-events) */
.screenshot-callout{
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.screenshot-callout-text h3{ font-size: 1.6rem; }
.screenshot-callout-text p{ color: var(--muted); font-size: 1.05rem; }

.browser-chrome{
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: #E9EBF2;
}
.browser-chrome span{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #C7CBDA;
}
.browser-chrome span:nth-child(1){ background: #ED6A5E; }
.browser-chrome span:nth-child(2){ background: #F4BF4F; }
.browser-chrome span:nth-child(3){ background: #61C454; }

.screenshot-callout-frame, .screenshot-feature-frame{
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.screenshot-callout-frame img, .screenshot-feature-frame img{ width: 100%; }

/* Screenshot feature (full width) */
.screenshot-feature-frame{
  max-width: 980px;
  margin: 56px auto 0;
}

/* Analytics */
.analytics-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.analytics-card{
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.analytics-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.analytics-card p{ color: var(--muted); margin: 0; font-size: .96rem; }
.analytics-card .feature-icon{ background: rgba(11,47,107,.08); color: var(--navy); }

.analytics-card--highlight{
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-color: transparent;
  color: #fff;
}
.analytics-card--highlight h3{ color: #fff; }
.analytics-card--highlight p{ color: rgba(255,255,255,.82); }
.analytics-card--highlight .feature-icon{ background: rgba(255,255,255,.15); color: #fff; }

/* CTA band */
.cta-band{
  background:
    radial-gradient(120% 160% at 20% 0%, rgba(200,16,46,.35), transparent 55%),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  text-align: center;
}
.cta-band h2{ color: #fff; }
.cta-band-actions{ margin-top: 28px; }

/* ===================================================================
   Fade-in animation
   =================================================================== */
[data-animate]{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate].in-view{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  [data-animate]{ opacity: 1; transform: none; transition: none; }
  html{ scroll-behavior: auto; }
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer{
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 48px 0;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand--footer .brand-name{ color: #fff; }
.footer-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a{ font-size: .9rem; color: rgba(255,255,255,.75); transition: color .2s ease; }
.footer-nav a:hover{ color: #fff; }
.footer-copy{ font-size: .82rem; margin: 0; width: 100%; text-align: center; color: rgba(255,255,255,.5); }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px){
  .pillars{ grid-template-columns: 1fr; }
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .analytics-grid{ grid-template-columns: repeat(2, 1fr); }
  .screenshot-callout{ grid-template-columns: 1fr; }
  .screenshot-callout-text{ text-align: center; }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 22px;
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-sizing: border-box;
    overflow-y: auto;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav a{ font-size: 1.05rem; white-space: normal; }
  .main-nav .nav-cta{ margin-top: 10px; text-align: center; }
  .nav-toggle{ display: flex; }
  .nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2){ opacity: 0; }
  .nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .feature-grid{ grid-template-columns: 1fr; }
  .analytics-grid{ grid-template-columns: 1fr; }
  .section{ padding: 68px 0; }
  .hero-arrow{ display: none; }
}

@media (max-width: 520px){
  .btn{ width: 100%; justify-content: center; }
  .hero-actions{ width: 100%; }
}

/* Scroll offset for anchored sections under fixed header */
section[id]{ scroll-margin-top: 90px; }
