:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #071B3A;
  background: #F5F9FF;
  font-synthesis: none;
  text-rendering: optimizeLegibility;

  --navy: #071B3A;
  --navy-2: #0A2B60;
  --blue: #0D4EFF;
  --blue-2: #1B6DFF;
  --cyan: #25C7FF;
  --cyan-soft: #DDF7FF;
  --paper: #FFFFFF;
  --muted: #62738F;
  --muted-2: #94A5BE;
  --line: #D8E5F6;
  --soft: #EDF5FF;
  --danger: #B42318;
  --green: #0B8A5B;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #F5F9FF;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--navy);
  background:
    radial-gradient(circle at 12% 0%, rgba(37,199,255,.16), transparent 28rem),
    radial-gradient(circle at 100% 12%, rgba(13,78,255,.12), transparent 26rem),
    linear-gradient(180deg, #F8FCFF 0%, #F5F9FF 45%, #F2F7FF 100%);
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.hidden-input { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 72px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px 0;
}

.brand-text {
  font-size: 21px;
  letter-spacing: -.035em;
  font-weight: 550;
  color: var(--blue);
}

.brand-text strong {
  color: var(--navy);
  font-weight: 760;
}

.language-switch {
  border: 1px solid rgba(13,78,255,.16);
  background: rgba(255,255,255,.9);
  border-radius: 12px;
  padding: 3px;
  display: flex;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(7,27,58,.06);
}

.language-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.active {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
  box-shadow: 0 5px 14px rgba(7,27,58,.22);
}

.landing,
.workspace {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  flex: 1;
}

.hero {
  position: relative;
  max-width: 760px;
  padding: 66px 0 42px;
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 36px;
  width: 74px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 18px rgba(37,199,255,.72);
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #31527C;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 11px;
  border: 1px solid rgba(37,199,255,.28);
  background: rgba(255,255,255,.72);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(13,78,255,.06);
}

.privacy-pill svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.hero h1 {
  margin: 22px 0 14px;
  max-width: 720px;
  color: var(--navy);
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.01;
  letter-spacing: -.055em;
  font-weight: 790;
}

.hero p {
  margin: 0;
  max-width: 650px;
  color: #5E7190;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.chooser h2 {
  margin: 0 0 14px;
  color: #2B4368;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mode-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(13,78,255,.13);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,251,255,.98));
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  cursor: pointer;
  box-shadow:
    0 14px 30px rgba(7,27,58,.07),
    inset 0 1px 0 rgba(255,255,255,.95);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.mode-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -50px;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,199,255,.18), transparent 68%);
  pointer-events: none;
}

.mode-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13,78,255,.28);
  box-shadow:
    0 18px 34px rgba(7,27,58,.10),
    0 0 0 1px rgba(37,199,255,.05);
}

.mode-icon,
.workspace-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.35), rgba(255,255,255,0) 36%),
    linear-gradient(145deg, #28D5FF 0%, #0D4EFF 52%, #0733B5 100%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow:
    0 12px 20px rgba(13,78,255,.24),
    0 3px 0 #073AA9,
    inset 0 1px 0 rgba(255,255,255,.72),
    inset 0 -4px 9px rgba(4,33,107,.26);
  transform: translateY(-1px);
}

.mode-icon::before,
.workspace-icon::before {
  content: "";
  position: absolute;
  inset: 4px 6px auto;
  height: 35%;
  border-radius: 12px 12px 50% 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.34), transparent);
  pointer-events: none;
}

.mode-icon svg,
.workspace-icon svg {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 2px 2px rgba(0,21,74,.25));
}

.mode-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mode-copy strong {
  color: var(--navy);
  font-size: 16px;
  font-weight: 760;
}

.mode-copy small {
  color: var(--muted);
  line-height: 1.45;
  font-size: 12px;
}

.chevron {
  font-size: 25px;
  color: #78A5E7;
  font-weight: 500;
}

.privacy-block {
  margin: 30px 0 50px;
  padding: 18px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #24466E;
  border: 1px solid rgba(13,78,255,.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(239,247,255,.86));
  box-shadow: 0 10px 26px rgba(13,78,255,.05);
}

.privacy-block.compact {
  margin-top: 24px;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.privacy-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue);
  border-radius: 10px;
  background: linear-gradient(145deg, #EAF8FF, #DCEEFF);
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(13,78,255,.08);
}

.privacy-icon svg {
  width: 17px;
  height: 17px;
}

.privacy-block strong {
  display: block;
  margin-bottom: 3px;
  color: #1E3F68;
  font-size: 12px;
  font-weight: 800;
}

.privacy-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 12px;
}

.privacy-block small {
  display: block;
  color: var(--muted-2);
  margin-top: 5px;
  line-height: 1.45;
  font-size: 11px;
}

@media (max-width: 680px) {
  .topbar,
  .landing,
  .workspace {
    width: min(100% - 28px, 940px);
  }

  .topbar { height: 62px; }
  .hero { padding: 48px 0 34px; }
  .hero::before { top: 28px; }
  .hero h1 { font-size: clamp(38px, 11vw, 50px); }
  .hero p { font-size: 16px; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { padding: 16px; border-radius: 16px; }
  .mode-icon { width: 52px; height: 52px; }
}
