/*
Theme Name: 4aey AI News
Description: A custom, lightning fast, full-white animated landing page theme for AI News.
Author: Antigravity
Version: 1.0
*/

:root {
  --primary: #0f172a;
  --secondary: #2563eb;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #334155;
  --text-light: #64748b;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 8vw, 4rem); letter-spacing: -0.05em; }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); letter-spacing: -0.03em; }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* Header */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header .logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header .logo span {
  color: var(--secondary);
}
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.main-navigation a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 99px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.main-navigation a:hover {
  color: var(--secondary);
  background-color: var(--bg-alt);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}
.hero p {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--text-light);
  margin: 24px 0 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--secondary);
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 25px rgba(59, 130, 246, 0.3);
}

/* News Grid (Dynamicity) */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}
@media(min-width: 768px) {
  .news-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
}

.news-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: rgba(59, 130, 246, 0.3);
}
.news-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.news-card:hover::before {
  transform: scaleX(1);
}

.news-meta {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.news-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.news-title a {
  color: var(--primary);
  text-decoration: none;
}
.news-excerpt {
  color: var(--text-light);
  font-size: 1rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Dynamic Background Blob */
.blob {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  top: -20%;
  right: -10%;
  z-index: 1;
  animation: float 10s infinite ease-in-out alternate;
}
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 30px) scale(1.1); }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--text-light);
}
