/* ==========================================
   TechNova Sky — Design System & Main Styles
   ========================================== */

:root {
  /* Color Tokens */
  --bg-dark: #080d1a;
  --bg-surface: #0e172a;
  --bg-card: #131f37;
  --bg-card-hover: #182744;
  --bg-glass: rgba(14, 23, 42, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(56, 189, 248, 0.35);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #38bdf8;
  --accent-lime: #a3e635;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-violet: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

/* Announcement Bar */
.announcement {
  background: linear-gradient(90deg, #091328 0%, #0f2347 50%, #091328 100%);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.announcement-inner {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-pill {
  background: rgba(163, 230, 53, 0.15);
  color: var(--accent-lime);
  border: 1px solid rgba(163, 230, 53, 0.3);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.announcement-link {
  margin-left: auto;
  color: var(--accent-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement-link:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.brand-accent {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.desktop-nav a {
  position: relative;
  padding: 6px 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.desktop-nav a:hover {
  color: #ffffff;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.search-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-family: var(--font-heading);
  color: var(--text-muted);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #ffffff;
  padding: 6px;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-medium);
  gap: 14px;
  font-weight: 600;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* Hero Section */
.hero {
  padding: 80px 0 70px;
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
              var(--bg-dark);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-medium);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.text-link {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.text-link:hover {
  color: #7dd3fc;
  gap: 8px;
}

/* Hero Visual Graphic Orbit Widget */
.hero-orbit {
  background: linear-gradient(145deg, rgba(14, 23, 42, 0.9), rgba(19, 31, 55, 0.8));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}

.orbit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.orbit-core-graphic {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
}

.orbit-ring-1 {
  width: 160px;
  height: 160px;
  border: 1.5px dashed rgba(56, 189, 248, 0.3);
}

.orbit-ring-2 {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(163, 230, 53, 0.2);
}

.orbit-center-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #ffffff;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
  z-index: 2;
}

.orbit-stat-pill {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.stat-pill-1 {
  top: 10px;
  left: 10px;
  color: var(--accent-lime);
}

.stat-pill-2 {
  bottom: 10px;
  right: 10px;
  color: var(--accent-cyan);
}

.orbit-footer-topics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Main Content Sections */
.section {
  padding: 80px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
}

.section-kicker {
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  color: #ffffff;
}

/* Card Components */
.feature-card, .article-card, .category-card, .about-panel, .newsletter {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover, .article-card:hover, .category-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.thumb {
  min-height: 220px;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  transition: transform 0.4s ease;
}

  .thumb-bg img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

.article-card:hover .thumb-bg,
.feature-card:hover .thumb-bg {
  transform: scale(1.05);
}

.thumb-label {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cat-android { background: rgba(56, 189, 248, 0.2); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.4); }
.cat-windows { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.4); }
.cat-apps { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.cat-ai { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.cat-tutorials { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }

.feature-copy {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.meta {
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.meta strong {
  color: var(--accent-cyan);
  font-weight: 700;
}

.feature-copy h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin: 12px 0;
  color: #ffffff;
}

.feature-copy p, .article-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-card {
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.mini-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.mini-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-dim);
}

.mini-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card .thumb {
  height: 175px;
}

.article-body {
  padding: 24px;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin: 10px 0 10px;
  color: #ffffff;
}

/* Category Grid */
.categories {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 80px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
}

.category-card::after {
  content: '↗';
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--accent-cyan);
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.category-card:hover::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.category-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.category-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Split Section (About & Newsletter) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-panel {
  padding: 36px;
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.9), rgba(16, 185, 129, 0.08));
  border: 1px solid var(--border-medium);
}

.about-panel h2 {
  margin: 10px 0 16px;
}

.about-panel p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.newsletter {
  padding: 36px;
  background: linear-gradient(135deg, #0f1c35, #14284d);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.newsletter h2 {
  margin: 10px 0 10px;
}

.newsletter p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.signup {
  display: flex;
  gap: 10px;
}

.signup input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-medium);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.signup input:focus {
  border-color: var(--accent-cyan);
}

.signup .btn {
  background: var(--accent-lime);
  color: #090d16;
  font-weight: 800;
}

.signup .btn:hover {
  background: #bef264;
}

/* Footer */
.footer {
  background: #050811;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 14px 0 20px;
  max-width: 320px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.socials a:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.footer h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-grid div a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-grid div a:hover {
  color: var(--accent-cyan);
}

.footer-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 13px;
}

/* Search Modal */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-panel[hidden] {
  display: none !important;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 17, 0.8);
  backdrop-filter: blur(12px);
}

.search-box {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  width: min(640px, calc(100% - 32px));
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.close-search {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.close-search:hover {
  color: #ffffff;
  border-color: var(--accent-cyan);
}

.search-header label {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.search-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 18px;
}

.search-hint code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-medium);
  padding: 0 16px;
  border-radius: var(--radius-md);
  color: var(--accent-cyan);
}

.search-input input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  padding: 14px 0;
  color: #ffffff;
  font-size: 16px;
}

#search-results {
  margin-top: 20px;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: block;
}

.result:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.result strong {
  font-family: var(--font-heading);
  font-size: 16px;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.result small {
  color: var(--text-muted);
  font-size: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-orbit { min-height: 280px; }
  .featured-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero p { font-size: 16px; }
  .article-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .signup { flex-direction: column; }
  .search-panel { padding-top: 40px; }
}
