/* =========================================================
   GoodAtSwift, LLC — Shared Stylesheet
   Design: deep charcoal canvas, Swift-orange accents,
   geometric display type, calm whitespace, subtle motion.
   A grown-up, software-studio companion to LuckRoll.
   ========================================================= */

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

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

:root {
  --bg:            #0d0f13;
  --bg-elev:       #14171d;
  --bg-elev-2:     #191d25;
  --bg-soft:       #1f242d;
  --text:          #f3f5f8;
  --text-muted:    #9aa3af;
  --text-dim:      #6b7280;
  --orange:        #ff7a2f;
  --orange-bright: #ff8c3d;
  --orange-deep:   #f0500a;
  --orange-grad:   linear-gradient(135deg, #ff9248 0%, #f0500a 100%);
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-card:   0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow:   0 8px 30px rgba(240, 80, 10, 0.28);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --maxw: 1120px;
  --transition-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--orange-bright);
  text-decoration: none;
  transition: color 0.2s var(--transition-ease), opacity 0.2s;
}
a:hover { color: var(--orange); }
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(255, 122, 47, 0.3); color: #fff; }

/* ── Typography ── */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1.display { font-size: clamp(2.4rem, 6vw, 4rem); }
h2.display { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3.display { font-size: clamp(1.3rem, 3vw, 1.7rem); }

.grad-text {
  background: var(--orange-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
  display: inline-block;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 60ch;
}

.muted { color: var(--text-muted); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

.section-head { max-width: 62ch; }
.section-head .lead { margin-top: 0.85rem; }

.divider-line {
  height: 1px;
  background: var(--border);
  border: none;
}

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo .accent { color: var(--orange); }
.nav-logo:hover { color: var(--text); opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--transition-ease), color 0.2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-cta {
  margin-left: 0.5rem;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--transition-spring), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 18, 23, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--transition-spring), opacity 0.25s var(--transition-ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1rem; padding: 0.7rem 1rem; }
  .nav-cta { margin-left: 0; margin-top: 0.4rem; }
  .nav-links .btn { width: 100%; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--transition-spring), box-shadow 0.25s, background 0.2s, opacity 0.2s, border-color 0.2s;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--orange-grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 36px rgba(240, 80, 10, 0.42); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { color: var(--text); border-color: var(--orange); background: rgba(255, 122, 47, 0.06); }

.btn-sm { font-size: 0.875rem; padding: 0.55rem 1.2rem; }
.btn-lg { font-size: 1.08rem; padding: 0.95rem 2rem; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 5%, rgba(240, 80, 10, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(255, 122, 47, 0.10) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-logo {
  width: min(100%, 420px);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .hero-logo { width: min(78%, 320px); }
}

/* ── Trust strip ── */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: center;
  align-items: center;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.trust-item svg { color: var(--orange); flex-shrink: 0; }

/* ── Generic card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  transition: transform 0.3s var(--transition-spring), border-color 0.3s, background 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--bg-elev-2);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(255, 122, 47, 0.12);
  border: 1px solid rgba(255, 122, 47, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 1.1rem;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* Elevated surface section */
.surface { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Services list (compact) ── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-top: 3rem;
}
.svc-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--transition-spring);
}
.svc-item:hover { border-color: var(--border-strong); background: var(--bg-elev-2); transform: translateY(-3px); }
.svc-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 122, 47, 0.14);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.svc-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.svc-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* ── Product card (feature) ── */
.product-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, background 0.3s;
}
.product-card:hover { border-color: var(--border-strong); background: var(--bg-elev-2); }
.product-logo {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.product-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 122, 47, 0.12);
  border: 1px solid rgba(255, 122, 47, 0.25);
  border-radius: 50px;
  padding: 0.18rem 0.65rem;
}
.tag-muted { color: var(--text-dim); background: rgba(255,255,255,0.04); border-color: var(--border); }
.product-card p { color: var(--text-muted); font-size: 0.96rem; margin: 0.5rem 0 0.9rem; line-height: 1.65; }

@media (max-width: 560px) {
  .product-card { grid-template-columns: 1fr; text-align: center; }
  .product-card .product-logo { margin: 0 auto; }
  .product-card h3 { justify-content: center; }
}

/* ── Stats row ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { color: var(--text-muted); font-size: 0.92rem; }

/* ── CTA band ── */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 122, 47, 0.25);
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(240, 80, 10, 0.22), transparent 70%),
    var(--bg-elev);
  padding: 3.5rem 2rem;
}
.cta-band h2 { margin-bottom: 0.9rem; }
.cta-band .lead { margin: 0 auto 1.8rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* ── Page hero (inner pages) ── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% -10%, rgba(240, 80, 10, 0.16), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .lead { margin-top: 0.9rem; }

/* ── Prose ── */
.prose { max-width: 760px; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  margin: 2.6rem 0 0.8rem;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  margin: 1.8rem 0 0.5rem;
}
.prose p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { color: var(--text-muted); margin-bottom: 0.4rem; line-height: 1.7; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .last-updated { font-size: 0.85rem; color: var(--text-dim); margin-top: -0.3rem; margin-bottom: 2rem; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, background 0.3s;
}
.contact-card:hover { border-color: var(--border-strong); background: var(--bg-elev-2); }
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.contact-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.contact-email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-word;
}

/* ── Footer ── */
.site-footer {
  background: #090b0e;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .nav-logo { font-size: 1.3rem; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; max-width: 260px; color: var(--text-dim); }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--transition-ease), transform 0.7s var(--transition-spring);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── Responsive ── */
@media (max-width: 900px) { section { padding: 4.5rem 0; } }
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .cta-band { padding: 2.5rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
