/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --color-indigo:    #2B2D42;
  --color-grey:      #8D99AE;
  --color-platinum:  #EDF2F4;
  --color-red:       #EF233C;
  --color-red-dark:  #D90429;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 2px 12px rgba(43, 45, 66, 0.07);
  --shadow-card-hover: 0 8px 28px rgba(43, 45, 66, 0.14);

  --transition-base: 0.2s ease;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-platinum);
  color: var(--color-indigo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; padding: 0; font-family: inherit; }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 242, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(141, 153, 174, 0.2);
  transition: box-shadow var(--transition-base);
}
.site-nav.scrolled {
  box-shadow: 0 2px 16px rgba(43, 45, 66, 0.08);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo {
  display: block;
  max-width: none;
  filter: invert(1) brightness(0);
  transition: opacity var(--transition-base);
}
.site-logo:hover { opacity: 0.75; }
.site-footer .site-logo {
  filter: none;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-grey);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-base);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  border-radius: 2px;
  transition: width var(--transition-base);
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-indigo);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-indigo);
  padding: 28px 40px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer .nav-logo-mark {
  background: rgba(237, 242, 244, 0.15);
  color: var(--color-platinum);
}
.site-footer .nav-brand-name {
  color: var(--color-platinum);
}
.footer-copy {
  font-size: 13px;
  color: rgba(237, 242, 244, 0.6);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 40px 56px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero-content {
  flex: 1 1 auto;
  min-width: 0;
}
.hero-avatar {
  flex: 0 0 auto;
}
.avatar-orbit {
  position: relative;
  width: 280px;
  height: 280px;
}
.hero-avatar__img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow:
    0 0 0 3px var(--color-red),
    0 24px 60px rgba(43, 45, 66, 0.28);
}
.orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
}
.orbit-dot--1 {
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--color-red);
  box-shadow: 0 0 8px 2px rgba(239, 35, 60, 0.55);
  animation: orbit-cw 5s linear infinite;
  --r: 152px;
}
.orbit-dot--2 {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--color-indigo);
  box-shadow: 0 0 6px 2px rgba(43, 45, 66, 0.4);
  animation: orbit-ccw 9s linear infinite;
  --r: 162px;
  animation-delay: -4s;
}
.orbit-dot--3 {
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--color-grey);
  box-shadow: 0 0 5px 1px rgba(141, 153, 174, 0.5);
  animation: orbit-cw 13s linear infinite;
  --r: 147px;
  animation-delay: -6s;
}
.orbit-dot--4 {
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--color-red);
  box-shadow: 0 0 5px 1px rgba(239, 35, 60, 0.4);
  animation: orbit-ccw 7s linear infinite;
  --r: 158px;
  animation-delay: -1s;
}
@keyframes orbit-cw {
  from { transform: rotate(0deg)    translateX(var(--r)); }
  to   { transform: rotate(360deg)  translateX(var(--r)); }
}
@keyframes orbit-ccw {
  from { transform: rotate(0deg)    translateX(var(--r)); }
  to   { transform: rotate(-360deg) translateX(var(--r)); }
}
.hero-tag {
  display: inline-block;
  background: rgba(239, 35, 60, 0.09);
  color: var(--color-red);
  border: 1px solid rgba(239, 35, 60, 0.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  animation: pulse-tag 3s ease-in-out infinite;
}
@keyframes pulse-tag {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}
.hero-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--color-indigo);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.hero-accent { color: var(--color-red); }
.hero-sub {
  font-size: 16px;
  color: var(--color-grey);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-blob {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(239,35,60,0.10) 0%, transparent 70%);
  border-radius: 50%;
  animation: blob-drift 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-20px, 20px) scale(1.08); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.btn-dark {
  background: var(--color-indigo);
  color: var(--color-platinum);
}
.btn-dark:hover {
  background: #1a1c2e;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(43,45,66,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--color-indigo);
  border: 1.5px solid var(--color-indigo);
}
.btn-outline:hover {
  background: var(--color-indigo);
  color: var(--color-platinum);
}
.btn-red {
  background: var(--color-red);
  color: #fff;
}
.btn-red:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239,35,60,0.30);
}

/* ============================================================
   Section utility
   ============================================================ */
.apps-section { padding: 56px 40px 48px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-indigo);
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

/* ============================================================
   Apps layout grid
   ============================================================ */
.apps-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  align-items: start;
}
.apps-small-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   App cards — shared
   ============================================================ */
.app-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(141, 153, 174, 0.15);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

/* Featured card */
.app-card--featured {
  display: flex;
  flex-direction: column;
}
.app-card__image--featured {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--color-indigo) 0%, #3d4060 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.app-card__image--featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-card__window-dots {
  position: absolute;
  top: 12px;
  left: 14px;
  display: flex;
  gap: 6px;
}
.app-card__window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(237, 242, 244, 0.3);
}
.app-card__placeholder-icon {
  font-size: 48px;
  opacity: 0.35;
}

/* Small card */
.app-card--small {
  display: flex;
  flex-direction: row;
}
.app-card__thumb {
  width: 72px;
  min-width: 72px;
  background: linear-gradient(135deg, var(--color-indigo), #3d4060);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

/* Card body */
.app-card__body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-indigo);
  line-height: 1.2;
}
.app-card--small .app-card__name { font-size: 14px; }
.app-card__desc {
  font-size: 13px;
  color: var(--color-grey);
  line-height: 1.5;
  flex: 1;
}
.app-card--small .app-card__desc { font-size: 12px; }
.app-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}
.app-card__footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* Badges */
.badge {
  display: inline-block;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge--red {
  background: rgba(239, 35, 60, 0.1);
  color: var(--color-red);
}
.badge--grey {
  background: rgba(141, 153, 174, 0.15);
  color: var(--color-grey);
}

/* Small button variant */
.btn--sm { padding: 7px 14px; font-size: 12px; }

/* ============================================================
   Page Hero (About, Contact)
   ============================================================ */
.page-hero {
  padding: 64px 40px 40px;
}
.page-hero__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--color-indigo);
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.page-hero__lead {
  font-size: 16px;
  color: var(--color-grey);
  max-width: 560px;
  line-height: 1.65;
}

/* ============================================================
   About — Editorial Intro
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.about-intro__photo-col {
  position: relative;
  overflow: hidden;
}
.about-intro__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.9);
}
.about-intro__photo-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 60%,
    var(--color-platinum) 100%
  ),
  linear-gradient(
    to top,
    rgba(239, 35, 60, 0.15) 0%,
    transparent 40%
  );
  pointer-events: none;
}
.about-intro__text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 56px 56px 48px;
  gap: 0;
}
.about-intro__name {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: var(--color-indigo);
  letter-spacing: -2px;
  line-height: 1;
  margin: 10px 0 4px;
}
.about-intro__handle {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-red);
  font-weight: 600;
  margin-bottom: 28px;
}
.about-intro__bio {
  font-size: 15px;
  color: var(--color-grey);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 16px;
}
.about-intro__bio:last-of-type { margin-bottom: 36px; }
.about-intro__stats {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(141, 153, 174, 0.2);
}
.about-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-stat__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-indigo);
  letter-spacing: -0.5px;
}
.about-stat__label {
  font-size: 12px;
  color: var(--color-grey);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   About Section (Journey / Stack)
   ============================================================ */
.about-section { padding: 64px 40px 0; }
.about-section--stack { padding-top: 48px; padding-bottom: 0; }
.about-journey {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(141, 153, 174, 0.15);
}
.about-section--stack .about-journey { border-bottom: none; }
.about-journey__label { padding-top: 4px; }
.about-block { display: flex; flex-direction: column; gap: 14px; }
.about-block__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-indigo);
  letter-spacing: -0.3px;
  border-left: 3px solid var(--color-red);
  padding-left: 12px;
  margin-bottom: 4px;
}
.about-block p {
  font-size: 15px;
  color: var(--color-grey);
  line-height: 1.75;
  max-width: 600px;
}
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-pill {
  background: #fff;
  border: 1px solid rgba(141, 153, 174, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-indigo);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base), color var(--transition-base);
}
.stack-pill:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

/* ============================================================
   CTA Card
   ============================================================ */
.about-cta { padding: 56px 40px 48px; }
.cta-card {
  background: var(--color-indigo);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cta-card__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-platinum);
  letter-spacing: -0.5px;
}
.cta-card__sub {
  font-size: 15px;
  color: var(--color-grey);
  max-width: 480px;
}
.cta-card .btn-dark {
  background: var(--color-red);
  margin-top: 6px;
}
.cta-card .btn-dark:hover { background: var(--color-red-dark); }

/* ============================================================
   Contact
   ============================================================ */
.contact-section { padding: 40px 40px 56px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-indigo);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(141, 153, 174, 0.35);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-indigo);
  background: #fff;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}
.form-input:focus {
  border-color: var(--color-indigo);
  box-shadow: 0 0 0 3px rgba(43, 45, 66, 0.08);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}
.btn-full { width: 100%; text-align: center; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}
.social-links { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-grey);
  transition: color var(--transition-base);
}
.social-link:hover { color: var(--color-indigo); }
.social-link__icon { font-size: 20px; }

/* ============================================================
   Product Page
   ============================================================ */
.product-back-bar {
  padding: 16px 40px;
  border-bottom: 1px solid rgba(141, 153, 174, 0.15);
}
.back-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-grey);
  transition: color var(--transition-base);
}
.back-link:hover { color: var(--color-red); }

.product-hero { padding: 48px 40px 32px; }
.product-hero__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--color-indigo);
  letter-spacing: -1px;
  margin: 12px 0 14px;
}
.product-hero__lead {
  font-size: 16px;
  color: var(--color-grey);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 28px;
}
.product-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.product-screenshot { padding: 0 40px; }
.screenshot-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(43, 45, 66, 0.15);
  border: 1px solid rgba(141, 153, 174, 0.15);
}
.screenshot-frame img { width: 100%; display: block; }
.screenshot-placeholder {
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, var(--color-indigo), #3d4060);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(237, 242, 244, 0.5);
}

.product-details { padding: 48px 40px 48px; }
.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* ============================================================
   Responsive — Tablet (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 16px; }

  .hero { padding: 48px 20px 40px; }
  .hero-inner { max-width: 100%; flex-direction: column-reverse; gap: 28px; }
  .avatar-orbit { width: 200px; height: 200px; }
  .hero-avatar__img { width: 200px; height: 200px; }
  .orbit-dot--1 { --r: 108px; }
  .orbit-dot--2 { --r: 114px; }
  .orbit-dot--3 { --r: 104px; }
  .orbit-dot--4 { --r: 111px; }
  .hero-headline { font-size: 32px; }

  .apps-section,
  .about-section,
  .about-cta,
  .contact-section,
  .product-screenshot,
  .product-details { padding-left: 20px; padding-right: 20px; }

  .apps-layout {
    grid-template-columns: 1fr;
  }
  .app-card--featured { width: 100%; }

  .about-intro {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .about-intro__photo-col { height: 320px; }
  .about-intro__photo-tint {
    background: linear-gradient(
      to bottom,
      transparent 50%,
      var(--color-platinum) 100%
    );
  }
  .about-intro__text-col { padding: 32px 20px 40px; }
  .about-intro__stats { gap: 20px; }
  .about-journey {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-grid,
  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-card { padding: 32px 24px; }
  .cta-card__title { font-size: 22px; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .site-footer { padding: 28px 20px; }

  .product-back-bar { padding: 12px 20px; }
  .product-hero { padding: 36px 20px 24px; }
  .page-hero { padding: 48px 20px 32px; }
}

/* ============================================================
   Responsive — Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .nav-links { gap: 10px; }
  .nav-link { font-size: 13px; }

  .hero-headline { font-size: 28px; letter-spacing: -0.5px; }
  .hero-sub { font-size: 14px; }

  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }

  .section-title { font-size: 22px; }

  .apps-small-col { gap: 12px; }
  .app-card--small .app-card__thumb { width: 56px; min-width: 56px; }
}

/* ============================================================
   Focus visible — keyboard navigation
   ============================================================ */
.btn:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible,
.back-link:focus-visible,
.stack-pill:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
  border-radius: 3px;
}
.form-input:focus-visible {
  outline: 2px solid var(--color-indigo);
  outline-offset: 2px;
}

/* ============================================================
   Prefers reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-tag  { animation: none; }
  .hero-blob { animation: none; }
  .app-card  { transition: none; }
}
