/* ==========================================================================
   Expend V1 Showcase Website Stylesheet
   Crafted with Mali typography, wide editorial grid, and warm ivory tones
   ========================================================================== */

:root {
  --bg-color: #FAF7F2;
  --surface-card: #F5EFE8;
  --surface-card-hover: #F0E9E1;
  --surface-white: #FFFFFF;
  --surface-code: #ECE5DC;
  
  --border-color: #E8E0D5;
  --border-subtle: #EFE8DF;
  --border-dark: #1E1E1E;
  
  --text-primary: #181716;
  --text-secondary: #58514A;
  --text-muted: #8E847B;
  --text-light: #FAF7F2;
  
  --accent-rust: #B45F3C;
  --accent-rust-hover: #9E5031;
  --brand-dark: #1E1E1E;
  --brand-hover: #333333;
  
  --font-main: 'Mali', cursive, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, Menlo, monospace;

  --max-width: 1220px;
  --phone-width: 340px;
  --phone-height: 690px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 36px;
}

/* ==========================================================================
   Navigation / Top Bar
   ========================================================================== */
.top-bar {
  padding: 40px 0 24px 0;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
}

.brand-title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand-subtext {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 40px 0 96px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-family: var(--font-main);
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-accent {
  color: var(--accent-rust);
  font-weight: 700;
}

.hero-description {
  font-family: var(--font-main);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 580px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 36px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-tag-item::before {
  content: "•";
  color: var(--accent-rust);
  font-weight: bold;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--brand-dark);
  color: var(--text-light);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 28px;
  border: 1px solid var(--brand-dark);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-primary svg {
  transition: transform 0.2s ease;
}

.btn-primary:hover svg {
  transform: translate(2px, -2px);
}

.btn-link {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--border-color);
}

.btn-link:hover {
  color: var(--text-primary);
  text-decoration-color: var(--text-primary);
}

.hero-jump-links {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.chip-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--surface-card);
  transition: all 0.2s ease;
}

.chip-link:hover {
  background: var(--surface-white);
  color: var(--accent-rust);
  border-color: var(--accent-rust);
}

.hero-meta {
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Phone Mockup & Interactive Screen Carousel
   ========================================================================== */
.hero-mockup-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: var(--phone-width);
  height: var(--phone-height);
  background: #121212;
  border-radius: 48px;
  padding: 10px;
  box-shadow:
    0 32px 64px -16px rgba(26, 20, 16, 0.24),
    0 0 0 1px rgba(0, 0, 0, 0.1),
    inset 0 0 0 2.5px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
}

.phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #000000;
  border-radius: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
}

.phone-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1c1c1e;
  border: 1px solid #2e2e30;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #000000;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.98);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.mockup-caption-area {
  margin-top: 20px;
  text-align: center;
}

.mockup-caption {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.carousel-dots {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  background-color: var(--accent-rust);
  width: 22px;
  border-radius: 5px;
}

/* ==========================================================================
   Section: Global Layout
   ========================================================================== */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-rust);
  margin-bottom: 14px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-main);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.25;
}

.section-lead {
  font-family: var(--font-main);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 820px;
}

/* ==========================================================================
   Section: What You Get (6-Card Grid)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  background: var(--surface-card-hover);
  border-color: #D6CCC0;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.08);
}

.feature-card-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 500;
}

.feature-card-title {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.feature-card-desc {
  font-family: var(--font-main);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==========================================================================
   Section: Architecture & How It's Built
   ========================================================================== */
.arch-diagram-wrapper {
  margin-top: 48px;
  background: var(--surface-white);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 40px 32px;
  box-shadow: 0 6px 24px -10px rgba(0, 0, 0, 0.05);
}

.arch-diagram-wrapper img,
.arch-diagram-wrapper svg {
  width: 100%;
  height: auto;
  display: block;
}

.arch-caption {
  margin-top: 24px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ==========================================================================
   Section: Get It (Download & Build from Source)
   ========================================================================== */
.get-it-section {
  text-align: center;
  padding-bottom: 110px;
}

.get-it-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}

.get-it-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.get-it-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
  text-align: left;
}

.get-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}

.get-card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 500;
}

.get-card-title {
  font-family: var(--font-main);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.get-card-desc {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
  flex-grow: 1;
}

.code-block {
  background: var(--surface-code);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 18px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

.get-card-footer {
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.get-card-footer a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.get-card-footer a:hover {
  color: var(--accent-rust);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0;
  text-align: center;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer a {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer a:hover {
  color: var(--accent-rust);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-mockup-wrapper {
    margin-top: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .get-it-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.8rem;
  }
}

@media (min-width: 961px) and (max-width: 1140px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
