/* ── Variables ── */
:root {
  --black: #111111;
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-300: #cccccc;
  --gray-500: #777777;
  --gray-800: #222222;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --accent: #f5a623;
  --max-width: 960px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ui);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,
    #ffffff 0%,
    #d4eaff 18%,
    #7ec8e3 32%,
    #f7e26b 50%,
    #f5a623 68%,
    #e84c3d 85%,
    #c0392b 100%
  );
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

/* ── Temperature display ── */
.display-unit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeIn 0.8s 0.2s ease forwards;
}

.screen-sim {
  width: clamp(280px, 52vw, 540px);
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
  container-type: size;
}

.screen-digits {
  display: flex;
  align-items: flex-start;
  font-size: clamp(133px, 24.65vw, 257px);
  line-height: 1;
}

.digit-text {
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-weight: 700;
  font-size: 1em;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.degree-ring {
  width: 0.22em;
  height: 0.22em;
  border: 0.04em solid #fff;
  border-radius: 50%;
  background: transparent;
  margin-top: 0.05em;
  margin-left: 0.05em;
  flex-shrink: 0;
}

/* ── Brand ── */
.brand {
  font-family: var(--font-ui);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 4px;
  opacity: 0;
  animation: fadeIn 0.8s 0.4s ease forwards;
}

.hero-platform {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 6px;
  opacity: 0;
  animation: fadeIn 0.8s 0.48s ease forwards;
}

.tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeIn 0.8s 0.55s ease forwards;
}

/* ── Buttons ── */
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.8s 0.7s ease forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--black);
  color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   FEATURES
   ══════════════════════════════════════ */
.features-section {
  position: relative;
  padding: 100px 40px 80px;
  background: #0a0a0a;
}
.features-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, #fafafa, #0a0a0a);
  pointer-events: none;
}

.features-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  color: #fff;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  padding: 40px;
  border-radius: 12px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.2);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #FF6B35;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.feature-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */
.faq {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--gray-100);
}

.faq-list {
  max-width: 600px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}
.faq-item:first-child {
  border-top: 1px solid #ddd;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover {
  color: var(--gray-500);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
  padding-bottom: 20px;
}
.faq-answer p + p {
  padding-top: 2px;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  padding: 40px 0;
  background: var(--white);
  border-top: 1px solid #eee;
  text-align: center;
}

.footer p {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.footer a {
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--black);
}

/* ══════════════════════════════════════
   Download Page
   ══════════════════════════════════════ */
.download-page {
  background: #0a0a0a;
  color: #fff;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-wrapper {
  max-width: 600px;
  width: 100%;
  padding: 80px 24px;
  margin: 0 auto;
}

.dl-logo {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 40px;
}

.dl-headline {
  font-family: var(--font-ui);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 8px;
}

.dl-subtext {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 48px;
}

.dl-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.dl-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid #333;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dl-btn-mac {
  border-left: 3px solid rgba(255, 255, 255, 0.6);
}
.dl-btn-mac:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.3);
}

.dl-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dl-btn-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

.dl-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dl-btn-label {
  font-size: 1rem;
  font-weight: 500;
}

.dl-btn-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.dl-instructions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-col-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.dl-soon {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 8px;
}

.dl-col-disabled {
  opacity: 0.35;
}

.dl-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.dl-steps li {
  counter-increment: step;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  padding-left: 24px;
  position: relative;
}

.dl-steps li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.dl-footer-notes {
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-receipt {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}

.dl-support {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.dl-support a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.dl-support a:hover {
  color: #fff;
}

/* ── Windows Security Warning ── */
.win-warning {
  background: rgba(255, 200, 60, 0.08);
  border: 1px solid rgba(255, 200, 60, 0.25);
  border-left: 3px solid #FFC83C;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 16px 0 24px 0;
}

.win-warning-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #FFC83C;
  margin-bottom: 10px;
}

.win-warning-intro {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  line-height: 1.6;
}

.win-warning-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.win-warning-steps li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  padding-left: 0;
}

.win-step-detail {
  display: block;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.win-warning-footer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
  line-height: 1.6;
}

.win-warning-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .features-section {
    padding: 80px 20px 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .dl-instructions {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .screen-sim {
    width: min(90vw, 540px);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
  }
}
