:root {
  --blue: #1a73e8;
  --blue-dark: #1557b0;
  --blue-soft: #e8f0fe;
  --green: #137333;
  --green-soft: #e6f4ea;
  --text: #202124;
  --text-muted: #5f6368;
  --text-faint: #9aa0a6;
  --border: rgba(32, 33, 36, 0.08);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #fff;
  --shadow-sm: 0 1px 2px rgba(60, 64, 67, 0.08);
  --shadow-md: 0 8px 28px rgba(60, 64, 67, 0.12);
  --shadow-lg: 0 20px 50px rgba(26, 115, 232, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #f6f8fc;
  -webkit-font-smoothing: antialiased;
}

.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Background */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

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

.blob-a {
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #aecbfa 0%, transparent 70%);
}

.blob-b {
  bottom: -140px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #ceead6 0%, transparent 70%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 115, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 115, 232, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 100%);
}

/* Page shell */

.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

/* Header */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nav-link:hover {
  border-color: rgba(26, 115, 232, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Main layout */

.main {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: clamp(12px, 2.5vh, 24px) clamp(20px, 4vw, 40px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-copy {
  min-width: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-blue {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.badge-green {
  color: var(--green);
  background: var(--green-soft);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.headline-accent {
  display: block;
  background: linear-gradient(135deg, var(--blue) 0%, #4285f4 50%, #34a853 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 22px;
  max-width: 44ch;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.features li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
}

.feature-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.features strong {
  display: block;
  margin-bottom: 1px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.features span {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #4285f4 100%);
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
  transform: translateY(-1px);
}

.note {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
}

/* Browser mock */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.browser {
  width: min(100%, 340px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.5deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #f1f3f4;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.browser-url {
  flex: 1;
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ext-pin {
  display: inline-flex;
  padding: 3px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.browser-body {
  padding: 24px 20px 18px;
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
}

.auth-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853, #fbbc04, #ea4335);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.auth-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 0 0 16px;
  font-size: 11px;
  color: var(--text-muted);
}

.auth-field {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  text-align: left;
  background: #fff;
}

.auth-field.filled {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.auth-label {
  display: block;
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-dots {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--text);
}

.auth-btn {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.flow-step {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: #f1f3f4;
}

.flow-step.done {
  color: var(--green);
  background: var(--green-soft);
}

.flow-step.active {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.flow-arrow {
  font-size: 10px;
  color: var(--text-faint);
}

.status-chip {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(19, 115, 51, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(19, 115, 51, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(19, 115, 51, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(19, 115, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 115, 51, 0); }
}

/* Footer */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(20px, 4vw, 40px) 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-faint);
}

.footer code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(26, 115, 232, 0.08);
  color: var(--blue-dark);
}

.sep {
  margin: 0 6px;
  opacity: 0.5;
}

.copy {
  flex-shrink: 0;
}

/* Responsive */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-visual {
    order: -1;
  }

  .browser {
    width: min(100%, 300px);
    transform: none;
  }

  .status-chip {
    bottom: -10px;
  }
}

@media (max-width: 640px) {
  .header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-tag {
    display: none;
  }

  .hero h1 {
    font-size: 1.55rem;
    margin-bottom: 10px;
  }

  .badges {
    margin-bottom: 10px;
  }

  .lead {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .features {
    gap: 8px;
    margin-bottom: 16px;
  }

  .features li {
    padding: 9px;
  }

  .feature-icon {
    width: 28px;
    height: 28px;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .copy {
    display: none;
  }
}

@media (max-height: 720px) {
  .hero h1 {
    font-size: clamp(1.45rem, 3.5vw, 2rem);
  }

  .badges {
    margin-bottom: 10px;
  }

  .lead {
    margin-bottom: 12px;
  }

  .features {
    margin-bottom: 14px;
  }

  .browser-body {
    padding: 16px 16px 14px;
  }

  .auth-sub {
    margin-bottom: 12px;
  }

  .flow-steps {
    margin-top: 12px;
    padding-top: 10px;
  }
}
