/* Glide marketing site
   Palette: gradient #000000 -> #033170 -> #6CE6E6
*/

:root {
  --ink: #0A0E12;
  --paper: #FFFFFF;
  --muted: #4B5563;
  --mist: #6B7280;
  --hairline: #E6E8EB;
  --subtle: #EAEFF5;
  --frost: #6CE6E6;
  --deep: #033170;
  --night: #000000;
  --accent: #0891B2;
  --grad-1: linear-gradient(135deg, #000000 0%, #033170 50%, #6CE6E6 100%);
  --grad-2: linear-gradient(160deg, #000000 0%, #033170 60%, #6CE6E6 130%);
  --shadow-soft: 0 12px 40px rgba(3, 49, 112, 0.18);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: var(--deep);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
a:hover { opacity: 0.7; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-1);
  color: var(--paper);
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 80% 10%, rgba(108, 230, 230, 0.3), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
  font-weight: 800;
  min-height: 140px;
}
.hero h1 .gradient {
  background: linear-gradient(90deg, #6CE6E6 0%, #BEF5F5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .caret {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: #6CE6E6;
  margin-left: 4px;
  vertical-align: -8%;
  border-radius: 1px;
  animation: caretBlink 0.9s steps(2, end) infinite;
}
.hero h1 .caret.caret-2 { opacity: 0; }
.hero h1 .caret.caret-2.active { opacity: 1; }
.hero h1 .caret.hidden { display: none; }
@keyframes caretBlink {
  to { opacity: 0; }
}

/* Hero entrance fade. The h1 itself stays visible from the start (it's
   empty until the typewriter fills it), but everything around it fades in. */
.hero .hero-copy,
.hero .hero-shot {
  animation: heroFadeIn 0.75s ease-out 0.10s both;
}
.hero .hero-shot {
  animation-delay: 0.30s;
}
.hero .hero-sub,
.hero .hero-ctas {
  opacity: 0;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  transform: translateY(8px);
}
.hero.typed .hero-sub,
.hero.typed .hero-ctas {
  opacity: 1;
  transform: translateY(0);
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero p {
  font-size: 20px;
  max-width: 480px;
  margin: 0 0 32px;
  opacity: 0.85;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--paper);
  color: var(--night);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-disabled {
  background: rgba(255, 255, 255, 0.6);
  color: var(--mist);
  cursor: default;
}
.btn-disabled:hover { transform: none; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  max-width: 560px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field-optional {
  font-weight: 400;
  color: var(--mist);
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--deep);
  box-shadow: 0 0 0 3px rgba(3, 49, 112, 0.12);
}
.contact-form .btn-primary {
  background: var(--ink);
  color: var(--paper);
  align-self: flex-start;
}
.contact-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.form-status-success { color: var(--deep); }
.form-status-error { color: #b91c1c; }

.hero-shot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-shot img {
  width: 100%;
  max-width: 380px;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

/* ---------- Section: features ---------- */
.section {
  padding: 96px 0;
}
.section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep);
  margin: 0 0 12px;
}
.section h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 56px;
  max-width: 720px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature {
  padding: 28px;
  border-radius: 20px;
  background: var(--subtle);
  border: 1px solid var(--hairline);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.feature p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Section: showcase ---------- */
.showcase {
  background: var(--subtle);
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.showcase-item img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Section: CTA band ---------- */
.cta-band {
  background: var(--grad-2);
  color: var(--paper);
  text-align: center;
  padding: 96px 0;
}
.cta-band h2 {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.cta-band p {
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 32px;
  opacity: 0.85;
}

/* ---------- Footer ---------- */
footer {
  padding: 48px 0;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--mist);
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--muted);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 80px 0 96px;
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 {
  font-size: 40px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.legal .updated {
  color: var(--mist);
  font-size: 14px;
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 22px 0 8px;
}
.legal p, .legal li {
  font-size: 16px;
  color: #1f2937;
  line-height: 1.65;
}
.legal ul {
  padding-left: 22px;
}
.legal a { color: var(--deep); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 64px 0 64px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero h1 { font-size: 44px; min-height: 96px; }
  .hero-shot img { max-width: 320px; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 30px; margin-bottom: 36px; }
  .cta-band { padding: 64px 0; }
  .cta-band h2 { font-size: 30px; }
  .feature-grid, .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav { display: none; }
  .legal h1 { font-size: 30px; }
}

@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
}
