/* ============================
   DESIGN TOKENS
   ============================ */
:root {
  --blue: #1B6BFF;
  --blue-dark: #0d4fd6;
  --blue-light: #e8f0ff;
  --blue-mid: #3d82ff;
  --ink: #0a0e1a;
  --ink-2: #1e2540;
  --muted: #4a5068;
  --muted-light: #7a83a0;
  --surface: #f5f7ff;
  --white: #ffffff;
  --border: rgba(27, 107, 255, 0.12);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-weight-body: 300;

  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--font-weight-body);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================
   NAV
   ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 4px 32px rgba(27,107,255,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.nav-mark {
  width: 40px; height: 40px;
  background: var(--blue);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 99px;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
}

.nav-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,107,255,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  padding: 120px 40px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(27,107,255,0.15), transparent 70%);
  top: -100px; right: -100px;
  animation: float 8s ease-in-out infinite;
}

.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(61,130,255,0.1), transparent 70%);
  bottom: 0; left: 10%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero-content {
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}

.highlight {
  color: var(--blue);
  position: relative;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================
   HERO VISUAL — DESK ILLUSTRATION
   ============================ */
.hero-visual {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.desk-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.desk-svg {
  width: 420px;
  max-width: 100%;
  filter: drop-shadow(0 12px 40px rgba(27,107,255,0.18));
  transition: filter var(--transition);
}

.desk-svg:hover {
  filter: drop-shadow(0 18px 52px rgba(27,107,255,0.28));
}

.desk-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 4px 10px;
  border-radius: 99px;
}

/* ============================
   ABOUT
   ============================ */
.about {
  padding: 100px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 32px;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--ink);
  font-weight: 500;
}

.about-stat-row {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 1.5rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-quote {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  margin-bottom: 24px;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--blue);
  opacity: 0.2;
  position: absolute;
  top: 8px; left: 20px;
}

.about-quote p {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.quote-author {
  font-size: 0.82rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  transition: all var(--transition);
}

.tag-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* ============================
   APPS
   ============================ */
.apps {
  padding: 100px 40px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  cursor: default;
  transition: all var(--transition);
}

.app-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(27,107,255,0.12);
  transform: translateY(-3px);
}

.app-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-icon svg {
  width: 24px; height: 24px;
}

.app-body {
  flex: 1;
  min-width: 0;
}

.app-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.app-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-tech {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.app-status {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 99px;
}

.status-live {
  background: #dcfce7;
  color: #16a34a;
}

.status-wip {
  background: #fef9c3;
  color: #ca8a04;
}

.app-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: all var(--transition);
  align-self: flex-start;
}

.app-link svg {
  width: 16px; height: 16px;
}

.app-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.app-card--add {
  border-style: dashed;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  gap: 8px;
  cursor: default;
}

.add-icon {
  width: 40px; height: 40px;
  border: 2px dashed var(--muted-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--muted-light);
}

.app-card--add p {
  font-size: 0.85rem;
  color: var(--muted-light);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: 48px 40px;
  border-top: 3px solid var(--blue);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.footer-logo .nav-mark {
  background: var(--blue);
}

.footer-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-display);
}

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================
   HAMBURGER
   ============================ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
  border-radius: 8px;
  transition: background var(--transition);
  order: -1;
}

.nav-toggle:hover {
  background: var(--blue-light);
  color: var(--blue);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 24px 60px;
    gap: 48px;
  }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav { padding: 0 20px; }
  .nav-location { display: none; }
  .about, .apps { padding: 64px 24px; }
}

@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 10px 16px; border-radius: 8px; }
  .desk-svg { width: 320px; }
  .apps-grid { grid-template-columns: 1fr; }
  .about-stat-row { gap: 16px; }
}
