/* Design Tokens */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --gradient-premium: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 40px rgba(59, 130, 246, 0.1);
  --container-max-width: 1200px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.reveal {
  opacity: 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-accent {
  background: var(--gradient-premium);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.nav-links a:hover {
  color: var(--accent-blue);
}
  color: var(--accent-blue);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 12rem 0 10rem;
  background: radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-content h1 {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.text-gradient {
  background: var(--gradient-premium);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Visual Elements */
.hero-visual {
  position: relative;
}

.mockup-container {
  position: relative;
  padding: 1rem;
  background: #fff;
  border-radius: 30px;
  box-shadow: var(--shadow-premium);
  animation: float 6s infinite ease-in-out;
}

.mockup-img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* Common Section Styles */
section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  padding: 1.1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary { 
  background: var(--text-primary); 
  color: #fff; 
}

.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: var(--shadow-lg);
}

.btn-gradient {
  background: var(--gradient-premium);
  color: #fff;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.btn-gradient:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--text-primary);
}

/* Cards & Glassmorphism */
.glass-card {
  padding: 3.5rem 3rem;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 32px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(59, 130, 246, 0.2);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-secondary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  color: var(--accent-blue);
  transition: var(--transition-smooth);
}

.glass-card:hover .card-icon {
  background: var(--gradient-premium);
  color: #fff;
}

.glass-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.glass-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Portfolio / Results */
.portfolio {
  background-color: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
}

.portfolio-item {
  border-radius: 40px;
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
}

.item-visual {
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.item-visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 1s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.item-info {
  padding: 0 1rem 1rem;
}

.item-info h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.item-info p {
  color: var(--text-muted);
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: steps;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-card::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: -1;
}

.step-card:last-child::after { display: none; }

.step-num {
  width: 80px;
  height: 80px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.step-card:hover .step-num {
  background: var(--gradient-premium);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
}

.step-card h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.step-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* About Section */
.about {
  padding: 10rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8rem;
}

.stats {
  display: flex;
  gap: 4rem;
  margin-top: 4rem;
}

.stat-num {
  font-size: 3.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  background: var(--gradient-premium);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.about-visual {
  height: 550px;
  background: var(--bg-tertiary);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  animation: float 10s infinite alternate;
}

.glass-box {
  padding: 4rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* CTA & Form */
.cta-banner {
  padding: 6rem 0;
}

.premium-banner {
  padding: 8rem 4rem;
  background: var(--text-primary);
  color: #fff;
  border-radius: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.premium-banner h2 { font-size: 3.5rem; color: #fff; margin-bottom: 1.5rem; }
.premium-banner p { font-size: 1.25rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 3.5rem; }

.btn-white {
  background: #fff;
  color: var(--text-primary);
}

/* Diagnosis Section */
.diagnosis .glass-card {
    transition: var(--transition-smooth);
}
.diagnosis input {
    transition: var(--transition-smooth);
    outline: none;
}
.diagnosis input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Solutions Grid */
.solutions .glass-card {
    padding: 2.5rem;
}

/* Pricing Section */
.pricing { background-color: var(--bg-primary); }
.pricing .glass-card { align-items: flex-start; text-align: left; }
.pricing ul li { font-size: 0.95rem; display: flex; align-items: flex-start; }

/* FAQ Section */
.faq .glass-card {
    transition: var(--transition-smooth);
    cursor: default;
}
.faq .glass-card:hover {
    transform: translateX(10px);
    border-color: var(--accent-blue);
}

/* Tools Section */
.tools {
    padding: 4rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

/* Why Us Section */
.why-us { background-color: var(--bg-secondary); }

/* Animation Delay Utility */
.reveal.active:nth-child(1) { animation-delay: 0.1s; }
.reveal.active:nth-child(2) { animation-delay: 0.2s; }
.reveal.active:nth-child(3) { animation-delay: 0.3s; }
.reveal.active:nth-child(4) { animation-delay: 0.4s; }

/* Footer Improvements */
.footer-top { border-bottom: none; }

/* Footer */
footer {
  padding: 6rem 0 4rem;
  background: var(--bg-secondary);
  border-top: 1px solid #e2e8f0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.footer-info { max-width: 320px; }
.footer-info p { margin-top: 1.5rem; color: var(--text-muted); }

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1200px) {
  .about-grid { gap: 4rem; }
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
  .step-card::after { display: none; }
}

@media (max-width: 768px) {
  .section-header h2 { font-size: 2.25rem; }
  .premium-banner { padding: 5rem 2rem; }
  .premium-banner h2 { font-size: 2.5rem; }
  .navbar .btn { display: none; }
}

/* Subpage Styles */
.subpage .navbar {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-header h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.case-header .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.case-content h3 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.case-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.case-content ul {
    list-style: none;
    padding: 0;
}

.case-content li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.case-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
}

@media (max-width: 768px) {
    .case-grid {
        grid-template-columns: 1fr !important;
    }
    .case-header h1 {
        font-size: 2.5rem;
    }
}

.subpage .reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* PWA Intro Section */
.pwa-intro {
    padding: 10rem 0;
    background: #fff;
    color: var(--text-primary);
}

.pwa-intro .section-header .subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-top: 1rem;
}

.pwa-intro .section-header .description {
    max-width: 800px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.pwa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 5rem;
}

.pwa-card {
    transition: var(--transition-smooth);
}

.pwa-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.pwa-card img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 1rem;
}

.pwa-card h4 {
    font-size: 1.1rem;
    text-align: center;
}

.pwa-details {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 8rem;
    align-items: flex-start;
}

.pwa-recommendations h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.pwa-recommendations ul {
    list-style: none;
    padding: 0;
}

.pwa-recommendations li {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.pwa-comparison {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
}

.pwa-comparison h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
    padding: 1.25rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    font-weight: 700;
    color: var(--text-muted);
}

.comparison-table .pwa-col {
    background: rgba(234, 179, 8, 0.1); /* Gold tint */
    border-left: 2px solid #eab308;
    border-right: 2px solid #eab308;
    color: #854d0e; /* Darker gold/brown */
    font-weight: 800;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .feature-col {
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .pwa-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .pwa-details { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 640px) {
    .pwa-grid { 
        grid-template-columns: 1fr; 
    }
    .pwa-comparison { 
        padding: 1.5rem; 
        overflow-x: auto; 
    }
    .comparison-table { 
        min-width: 500px; 
    }
}
