@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
  /* Colors - Backgrounds */
  --color-bg-primary: #050816;
  --color-bg-secondary: #0B1220;
  --color-bg-glass: rgba(11, 18, 32, 0.6);
  --color-bg-glass-light: rgba(255, 255, 255, 0.03);
  
  /* Colors - Accents */
  --color-google-blue: #4285F4;
  --color-purple: #8A2BE2;
  --color-cyan: #00FFFF;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-google-blue), var(--color-purple));
  --gradient-secondary: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
  --gradient-glow: linear-gradient(90deg, rgba(66,133,244,0.15) 0%, rgba(138,43,226,0.15) 50%, rgba(0,255,255,0.15) 100%);
  --gradient-text: linear-gradient(to right, #ffffff, #a0a5b5);
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Borders & Shadows */
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  --border-glow: 1px solid rgba(66, 133, 244, 0.3);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 20px rgba(66, 133, 244, 0.2);
  
  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Spacing */
  --container-max-width: 1440px;
  --section-padding: 120px 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.glass-panel {
  background: var(--color-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-glass);
  border-radius: 24px;
  box-shadow: var(--shadow-glass);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.h-full { height: 100%; }

.logo-box {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
}

.navbar {
    padding: 1rem 0;
    z-index: 100;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--gradient-secondary);
  z-index: -1;
  transition: opacity var(--transition-normal);
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   Background Effects
   ========================================================================== */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

/* JS Classes */
.hidden { opacity: 0; transform: translateY(20px) scale(0.95); pointer-events: none; }
.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* Chat Widget */
.chat-widget-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}
.chat-widget-btn:hover { transform: scale(1.1); }
.chat-window {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 350px;
    background: var(--color-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-header {
    background: var(--gradient-primary);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: bold;
}
.chat-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; min-height: 200px; }
.chat-input { display: flex; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.05); }
.chat-input input { flex: 1; background: transparent; border: none; color: #fff; outline: none; }
.chat-input button { background: none; border: none; color: var(--color-google-blue); font-weight: bold; cursor: pointer; }

.bg-glow-blue {
  background: var(--color-google-blue);
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
}

.bg-glow-purple {
  background: var(--color-purple);
  width: 400px;
  height: 400px;
  bottom: -50px;
  right: -50px;
}
