/* ==========================================================================
   AppMojo LLC — site styles
   A single shared stylesheet for the whole static site.
   ========================================================================== */

:root {
  --bg: #0b0d17;
  --bg-2: #0f1221;
  --surface: #151827;
  --surface-2: #1c2032;
  --border: #262a3f;
  --text: #e8eaf2;
  --muted: #9aa0b5;
  --muted-2: #6f7591;
  --accent: #6d5efc;
  --accent-2: #ff5d9e;
  --accent-3: #2dd4bf;
  --gradient: linear-gradient(135deg, #6d5efc 0%, #ff5d9e 100%);
  --gradient-soft: linear-gradient(135deg, rgba(109, 94, 252, 0.18) 0%, rgba(255, 93, 158, 0.18) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent-3); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--text); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

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

/* Accessibility: skip-to-content link, visible only on keyboard focus */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--gradient);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; outline: none; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 1rem;
}

.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(109, 94, 252, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(11, 13, 23, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand .logo { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 0.4rem; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(109, 94, 252, 0.22) 0%, rgba(255, 93, 158, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone {
  width: 260px;
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 14px;
  position: relative;
  transform: rotate(-4deg);
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 18px; border-radius: 0 0 14px 14px;
  background: var(--bg);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 24px;
  background: var(--gradient);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}
.phone-screen .app-glyph { width: 76px; height: 76px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35)); }
.phone-screen strong { font-size: 1.3rem; }
.phone-screen span { font-size: 0.85rem; opacity: 0.85; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.bg-soft { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--gradient-soft);
  margin-bottom: 1.1rem;
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--accent-2); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Portfolio / app cards ---------- */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.app-cover {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.app-cover .app-glyph { width: 64px; height: 64px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4)); }
.app-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.app-body h3 { margin-bottom: 0.35rem; }
.app-meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-3); margin-bottom: 0.8rem; }
.app-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  margin-right: 0.4rem;
}
.badge-soon {
  background: var(--gradient-soft);
  color: var(--accent-2);
  border-color: transparent;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.stat .label { color: var(--muted); font-size: 0.9rem; }

/* ---------- Values / list ---------- */
.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.value-list li { display: flex; gap: 1rem; align-items: flex-start; }
.value-list .check {
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
}
.value-list .check svg { width: 15px; height: 15px; stroke: #fff; }
.value-list strong { display: block; }
.value-list span { color: var(--muted); font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band p { color: var(--muted); max-width: 50ch; margin: 0 auto 1.8rem; }

/* ---------- Article / legal pages ---------- */
.page-head {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-bottom: 1px solid var(--border);
}
.article { padding: 3rem 0 4rem; }
.article .container { max-width: 800px; }
.article h2 { margin-top: 2.5rem; }
.article h3 { margin-top: 1.8rem; }
.article ul { padding-left: 1.3rem; color: var(--muted); }
.article li { margin-bottom: 0.5rem; }
.article a { color: var(--accent-3); }
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
}
.toc strong { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.toc li { margin-bottom: 0.35rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.97rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109, 94, 252, 0.18);
}
.contact-cards { display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; }
.contact-item .icon svg { width: 20px; height: 20px; stroke: var(--accent-2); }
.contact-item strong { display: block; }
.contact-item span, .contact-item a { color: var(--muted); font-size: 0.95rem; }
.form-note { font-size: 0.85rem; color: var(--muted-2); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { color: var(--muted); font-size: 0.94rem; max-width: 32ch; margin-top: 1rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--text); }
.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: 1rem;
  color: var(--muted-2);
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 1rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ul { columns: 1; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
  .nav-cta { margin-left: 0; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
