:root {
    --bg-warm: #f5f3ed;
    --text-ink: #1a1a1a;
    --warn-yellow: #f5c518;
    --warn-orange: #f07b24;
    --warn-red: #d92b2b;
    --cool-blue: #2b85d9;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    background-color: var(--bg-warm);
  }

  body {
    font-family: var(--font-sans);
    color: var(--text-ink);
    background-color: var(--bg-warm);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

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

  ul {
    list-style: none;
  }

  /* Typography */
  h1, h2, h3 {
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
  }

  .warn-text {
    font-family: var(--font-mono);
    font-weight: 700;
  }

  /* Header */
  header {
    position: sticky;
    top: 0;
    background-color: var(--bg-warm);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 100;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 900;
    font-size: 1.2rem;
  }

  .logo-group img {
    height: 32px;
    width: auto;
  }

  .nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    overflow-x: auto;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
  }

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

  .nav-dot.yellow { background-color: var(--warn-yellow); }
  .nav-dot.orange { background-color: var(--warn-orange); }
  .nav-dot.red { background-color: var(--warn-red); }
  .nav-dot.blue { background-color: var(--cool-blue); }

  .btn-download {
    background-color: var(--warn-red);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    min-height: 44px;
  }

  .blink-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    right: 4px;
    animation: blink 1.5s infinite;
  }

  @keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }

  /* Marquee */
  .marquee-wrap {
    background-color: var(--text-ink);
    color: var(--warn-yellow);
    overflow: hidden;
    white-space: nowrap;
    padding: 0.4rem 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
  }

  .marquee-text {
    display: inline-block;
    animation: marquee 20s linear infinite;
  }

  @keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* Hero */
  .hero {
    padding: 3rem 2rem;
    display: flex;
    gap: 2rem;
    position: relative;
    overflow: hidden;
  }

  .hero-text {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
  }

  .warn-badge {
    display: inline-block;
    background-color: var(--warn-yellow);
    color: var(--text-ink);
    padding: 0.2rem 0.6rem;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 2px;
  }

  .hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #444;
  }

  .hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn-primary {
    background-color: var(--warn-red);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-ink);
    color: var(--text-ink);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
  }

  .trust-info {
    font-size: 0.85rem;
    color: #666;
    font-family: var(--font-mono);
  }

  .hero-content {
    flex: 1;
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 10;
  }

  .hero-cards {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
  }

  .hero-card {
    width: 120px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s;
  }

  .hero-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
  }

  .hero-card .temp-read {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255,255,255,0.9);
    padding: 2px 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 2px;
  }

  .hero-card .info {
    padding: 0.4rem;
  }

  .hero-card .title {
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-card .tag {
    font-size: 0.6rem;
    color: #888;
    display: flex;
    justify-content: space-between;
    margin-top: 0.2rem;
  }

  .hero-card:nth-child(1) { height: 180px; }
  .hero-card:nth-child(2) { height: 200px; transform: translateY(-10px); }
  .hero-card:nth-child(3) { height: 160px; }

  .hero-ranking {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    flex: 1;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

  .hero-ranking h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
  }

  .rank-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
  }

  .rank-item .num {
    font-family: var(--font-mono);
    color: #999;
    width: 16px;
  }

  .rank-item .num.top {
    color: var(--warn-red);
    font-weight: bold;
  }

  .rank-item img {
    width: 32px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 2px;
  }

  .rank-item .r-title {
    flex: 1;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rank-item .r-temp {
    font-family: var(--font-mono);
    color: var(--warn-orange);
    font-weight: bold;
  }

  /* Sections Common */
  section {
    padding: 4rem 2rem;
    position: relative;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
  }

  .section-header p {
    color: #555;
    font-size: 1.1rem;
  }

  /* Heatwave Sections */
  .bg-yellow { background-color: rgba(245, 197, 24, 0.1); }
  .bg-orange { background-color: rgba(240, 123, 36, 0.1); }
  .bg-red { background-color: var(--warn-red); color: #fff; }
  .bg-red .section-header p { color: rgba(255,255,255,0.8); }

  /* Section 3: Ranking */
  .ranking-grid {
    display: flex;
    gap: 2rem;
  }

  .thermometer-side {
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 2rem;
  }

  .thermo-bulb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--warn-red);
  }

  .thermo-tube {
    width: 8px;
    height: 200px;
    background-color: #eee;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin-bottom: -4px;
  }

  .thermo-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-color: var(--warn-orange);
    transition: height 0.5s;
  }

  .rank-list-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

  .rank-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
  }

  .rank-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
  }

  .rank-card img {
    width: 60px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
  }

  .rank-card-info {
    flex: 1;
  }

  .rank-card-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  .rank-card-info p {
    font-size: 0.75rem;
    color: #666;
  }

  /* Section 4: Radar */
  .radar-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .radar-circle-wrap {
    width: 300px;
    height: 300px;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,123,36,0.1) 0%, transparent 70%);
    border: 1px solid rgba(240,123,36,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(240,123,36,0.4) 360deg);
    animation: sweep 4s linear infinite;
  }

  @keyframes sweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .radar-genre {
    position: absolute;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .genre-1 { top: 10%; left: 50%; transform: translateX(-50%); color: var(--warn-red); font-size: 1.2rem; }
  .genre-2 { top: 30%; right: 15%; color: var(--warn-orange); font-size: 1rem; }
  .genre-3 { bottom: 20%; right: 25%; color: var(--warn-orange); font-size: 0.9rem; }
  .genre-4 { bottom: 15%; left: 20%; color: var(--text-ink); font-size: 0.85rem; }
  .genre-5 { top: 40%; left: 10%; color: var(--text-ink); font-size: 0.85rem; }

  .radar-cards {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .radar-cards .hero-card {
    width: 100%;
    height: auto;
  }

  /* Section 5: Timeline */
  .timeline-wrap {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .timeline-item {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .timeline-time {
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.9rem;
  }

  .timeline-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
  }

  .timeline-wave {
    font-size: 0.75rem;
    color: var(--warn-orange);
    font-weight: bold;
  }

  /* Section 6: Path */
  .path-layout {
    position: relative;
    height: 400px;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><path d="M0,200 Q100,100 200,250 T400,150 T600,300 T800,100" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2" stroke-dasharray="5,5"/></svg>') no-repeat center center;
    background-size: cover;
  }

  .path-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .path-node img {
    width: 80px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #fff;
  }

  .path-node .info {
    background: #fff;
    color: var(--text-ink);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
  }

  .node-1 { top: 10%; left: 20%; }
  .node-2 { top: 40%; left: 50%; }
  .node-3 { top: 60%; left: 80%; }

  /* Section 7: Live */
  .live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }

  /* Section 8: Follow */
  .follow-layout {
    display: flex;
    gap: 2rem;
  }

  .follow-wall {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }

  .follow-sidebar {
    flex: 1;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-ink);
  }

  .follow-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--warn-orange);
    padding-bottom: 0.5rem;
  }

  /* Section 9: Cool */
  .cool-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
  }

  .phone-frame {
    width: 240px;
    aspect-ratio: 9/19.5;
    background: #111;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
  }

  .phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cool-notes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
  }

  .cool-note {
    background: rgba(43, 133, 217, 0.1);
    border-left: 3px solid var(--cool-blue);
    padding: 0.8rem;
    border-radius: 4px;
  }

  .cool-note h4 {
    color: var(--cool-blue);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  .cool-note p {
    font-size: 0.8rem;
    color: #555;
  }

  /* Section 10: FAQ */
  .faq-layout {
    display: flex;
    gap: 2rem;
  }

  .faq-side {
    flex: 0 0 30%;
    writing-mode: vertical-rl;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
  }

  .faq-list {
    flex: 1;
  }

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

  .faq-item summary {
    padding: 1rem 0;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .faq-item summary::-webkit-details-marker {
    display: none;
  }

  .faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: #999;
  }

  .faq-item[open] summary::after {
    content: '-';
  }

  .faq-answer {
    padding-bottom: 1rem;
    color: #555;
    font-size: 0.9rem;
  }

  /* Section 11: Download */
  .download-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .warn-sign {
    background: #fff;
    color: var(--warn-red);
    padding: 2rem 3rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }

  .download-btn-group {
    display: flex;
    gap: 1rem;
  }

  .qr-placeholder {
    width: 100px;
    height: 100px;
    background: #eee;
    border: 2px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
  }

  /* Footer */
  footer {
    padding: 3rem 2rem 2rem;
    background: var(--text-ink);
    color: #999;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .footer-links a {
    color: #ccc;
  }

  .footer-links a:hover {
    color: #fff;
  }

  .site-about {
    font-size: 0.8rem;
    color: #999;
    cursor: pointer;
  }

  .site-about-content {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  /* Responsive */
  @media (max-width: 1024px) {
    .hero {
      flex-direction: column;
    }
    .hero-text {
      flex: auto;
    }
    .hero-content {
      flex-direction: column;
    }
    .hero-ranking {
      max-width: 100%;
    }
    .ranking-grid {
      flex-direction: column;
    }
    .thermometer-side {
      flex-direction: row;
      width: auto;
      padding-bottom: 0;
      margin-bottom: 1rem;
    }
    .thermo-tube {
      width: 100px;
      height: 8px;
      margin-bottom: 0;
      margin-left: -4px;
    }
    .thermo-fill {
      left: 0;
      top: 0;
      height: 100%;
      width: 60%;
    }
    .faq-layout {
      flex-direction: column;
    }
    .faq-side {
      writing-mode: horizontal-tb;
      font-size: 1.8rem;
    }
  }

  @media (max-width: 768px) {
    .nav-links {
      display: none; /* Mobile menu toggle would go here */
    }
    .hero-buttons {
      flex-direction: column;
    }
    .hero-cards {
      flex-wrap: wrap;
      justify-content: center;
    }
    .hero-card:nth-child(n) {
      height: auto;
      transform: none;
    }
    .path-layout {
      height: auto;
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }
    .path-node {
      position: static;
    }
    .follow-layout {
      flex-direction: column;
    }
    .cool-notes {
      width: 100%;
      max-width: 100%;
    }
  }