/* =========================================
   GLASSHOUSE LINK — LANDING PAGE
   styles.css · v1
   ========================================= */

/* -----------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------- */
:root {
  /* Colors */
  --primary:    #50b3ff;
  --dark:       #13289b;
  --text:       #111111;
  --light:      #F8F9FF;
  --white:      #FFFFFF;
  --gray-100:   #F0F4FF;
  --gray-200:   #DDE4F5;
  --gray-400:   #555555;

  /* Typography */
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;

  /* Layout */
  --max-width:          1200px;
  --section-pad:        120px;
  --section-pad-mobile: 72px;

  /* RGB values for rgba() usage */
  --light-rgb:  248, 249, 255;
  --dark-rgb:   19, 40, 155;
  --primary-rgb: 80, 179, 255;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background: var(--light);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* -----------------------------------------
   3. LAYOUT UTILITIES
   ----------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.section--light  { background: var(--light); }
.section--white  { background: var(--white); }
.section--dark   { background: var(--dark); }
.section--gray   { background: var(--gray-100); }

/* -----------------------------------------
   4. TYPOGRAPHY UTILITIES
   ----------------------------------------- */
.section__eyebrow {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}
.section__eyebrow--center { text-align: center; }
.section__eyebrow--light  { color: rgba(var(--primary-rgb), 0.9); }

.section__title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.section__title--center { text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; }
.section__title--light  { color: var(--white); }

.section__body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-400);
  margin-bottom: 32px;
}
.section__body--center { text-align: center; max-width: 580px; margin-left: auto; margin-right: auto; }
.section__body--light  { color: rgba(255,255,255,0.7); }

/* -----------------------------------------
   5. BUTTONS
   ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--sm { padding: 10px 20px; font-size: 14px; border-radius: 8px; }

.btn--full { width: 100%; padding: 16px 28px; font-size: 17px; }

/* -----------------------------------------
   6. NAV
   ----------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(var(--light-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--dark-rgb), 0.06);
  transition: background 0.3s;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* -----------------------------------------
   7. HERO
   ----------------------------------------- */
.hero {
  padding-top: calc(var(--section-pad) + 72px);
  background: var(--light);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__content { position: relative; z-index: 2; }

.hero__h1 {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}

.hero__accent {
  color: var(--primary);
}

.hero__body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--gray-400);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Hero Visual */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__haze {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: hazeGlow 5s ease-in-out infinite;
}

@keyframes hazeGlow {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

/* Dashboard Mockup */
.dashboard {
  width: 420px;
  background: var(--white);
  border-radius: 20px;
  box-shadow:
    0 32px 64px rgba(var(--dark-rgb), 0.14),
    0 0 0 1px rgba(var(--dark-rgb), 0.06);
  padding: 24px;
  position: relative;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}

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

.dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dashboard__logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard__logo-mark {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.dashboard__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.dashboard__date {
  font-size: 12px;
  color: var(--gray-400);
}

.dashboard__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dashboard__stat {
  background: var(--gray-100);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}

.dashboard__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.dashboard__stat-unit {
  font-size: 14px;
  font-weight: 500;
}

.dashboard__stat-label {
  display: block;
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.dashboard__section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.dashboard__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.dashboard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--light);
  border-radius: 8px;
  gap: 12px;
}

.dashboard__row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.dashboard__row-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard__row-sub {
  font-size: 10px;
  color: var(--gray-400);
}

.dashboard__badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.dashboard__badge--green { background: #D1FAE5; color: #065F46; }
.dashboard__badge--blue  { background: #DBEAFE; color: #1D4ED8; }
.dashboard__badge--gray  { background: var(--gray-200); color: var(--gray-400); }

.dashboard__chart-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.dashboard__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
}

.dashboard__bar {
  flex: 1;
  background: var(--gray-200);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.dashboard__bar--highlight {
  background: var(--primary);
}

/* -----------------------------------------
   8. PROBLEM
   ----------------------------------------- */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}

.problem__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.problem__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.problem__item-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

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

.problem__item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.problem__item p {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Stat Ring */
.problem__stat-card {
  text-align: center;
}

.stat-ring {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.stat-ring__svg {
  width: 220px;
  height: 220px;
  transform: rotate(-90deg);
}

.stat-ring__track {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 10;
}

.stat-ring__fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-ring__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.stat-ring__number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  display: block;
  line-height: 1;
}

.stat-ring__pct {
  font-size: 28px;
}

.stat-ring__desc {
  display: block;
  font-size: 13px;
  color: var(--gray-400);
  max-width: 110px;
  line-height: 1.4;
  margin-top: 6px;
}

.problem__stat-note {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
}

.problem__stat-highlight {
  display: block;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  margin-top: 4px;
}

/* -----------------------------------------
   9. SOLUTION
   ----------------------------------------- */
.solution__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Phone mockup */
.solution__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.solution__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.solution__phone {
  width: 260px;
  background: #1C1C1E;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}

.solution__phone-screen {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solution__sms-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.solution__sms-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.solution__sms-from {
  font-size: 13px;
  font-weight: 600;
  color: #111111;
}

.solution__sms-time {
  font-size: 11px;
  color: rgba(0,0,0,0.4);
  margin-top: 2px;
}

.solution__sms-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 90%;
}

.solution__sms-bubble--in {
  background: #E9E9EB;
  color: #111111;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.solution__sms-bubble--out {
  background: #007AFF;
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}

.solution__sms-status {
  font-size: 10px;
  color: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  gap: 6px;
}

.solution__sms-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.solution__accent { color: var(--primary); }

.solution__pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.solution__pillar {
  padding: 16px 20px;
  background: var(--gray-100);
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}

.solution__pillar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.solution__pillar-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.solution__pillar-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.solution__pillar p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  margin: 0;
}

/* -----------------------------------------
   10. FEATURES
   ----------------------------------------- */
.features__header {
  text-align: center;
  margin-bottom: 56px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 16px 40px rgba(var(--dark-rgb), 0.08);
  transform: translateY(-3px);
}

.feature-card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}

.feature-card__icon-wrap svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card__body {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.65;
}

/* -----------------------------------------
   11. UVPs
   ----------------------------------------- */
.uvps__bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.uvps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.uvp-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: background 0.2s;
}

.uvp-card:hover {
  background: rgba(255,255,255,0.1);
}

.uvp-card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}

.uvp-card__icon-wrap svg {
  width: 22px;
  height: 22px;
}

.uvp-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.uvp-card__body {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* -----------------------------------------
   12. PROCESS
   ----------------------------------------- */
.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
  justify-content: center;
}

.process__step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 16px;
}

.process__connector {
  width: 120px;
  flex-shrink: 0;
  margin-top: 52px;
}

.process__connector svg {
  width: 100%;
  height: 24px;
}

.process__step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.process__step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 2px solid rgba(var(--primary-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 20px;
}

.process__step-icon svg {
  width: 28px;
  height: 28px;
}

.process__step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.process__step-body {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.65;
}

/* -----------------------------------------
   13. CONTACT
   ----------------------------------------- */
.contact__bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.contact__inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact__input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.contact__input::placeholder { color: rgba(255,255,255,0.4); }

.contact__input:focus {
  border-color: rgba(var(--primary-rgb), 0.6);
  background: rgba(255,255,255,0.12);
}

.contact__textarea {
  resize: vertical;
  min-height: 120px;
}

/* -----------------------------------------
   14. FOOTER
   ----------------------------------------- */
.footer {
  background: #0d1e7a;
  padding: 60px 0 32px;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand .nav__wordmark { color: var(--white); }

.footer__tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

.footer__nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.footer__link {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  text-align: center;
}

.footer__copy {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
}

/* -----------------------------------------
   15. UTILITIES
   ----------------------------------------- */
.mobile-only { display: none; }

/* -----------------------------------------
   16. RESPONSIVE — 1024px
   ----------------------------------------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }

  .hero__h1 { font-size: 52px; }
  .hero__body { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }

  .hero__visual { justify-content: center; }

  .dashboard { width: 380px; }

  .problem__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .problem__stat-card { order: -1; }

  .solution__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .solution__visual { justify-content: center; }
  .solution__pillars { align-items: center; }
  .solution__pillar { max-width: 480px; width: 100%; text-align: left; }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .uvps__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section__title { font-size: 38px; }
}

/* -----------------------------------------
   16. RESPONSIVE — 768px
   ----------------------------------------- */
@media (max-width: 768px) {
  .mobile-only { display: block; }

  .problem__grid { gap: 24px; }

  .section { padding: var(--section-pad-mobile) 0; }

  .hero__h1 { font-size: 42px; }
  .section__title { font-size: 32px; }

  .dashboard { width: 340px; }

  .process__steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .process__connector { display: none; }

  .process__step { max-width: 100%; }

  .contact__form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer__nav {
    gap: 20px;
  }
}

/* -----------------------------------------
   17. RESPONSIVE — 480px
   ----------------------------------------- */
@media (max-width: 480px) {
  .container { padding: 0 20px; }

  .hero__h1 { font-size: 36px; }
  .section__title { font-size: 28px; }

  .dashboard {
    width: 100%;
    max-width: 320px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .uvps__grid {
    grid-template-columns: 1fr;
  }

  .solution__phone { width: 220px; }

  .nav__inner { padding: 0 20px; }
}
