/* Prime Software - Google-Inspired Design System */
/* Clean, Minimal, Functional */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  /* Google Colors */
  --google-blue: #4285f4;
  --google-blue-dark: #1a73e8;
  --google-blue-light: #8ab4f8;
  --google-red: #ea4335;
  --google-yellow: #fbbc05;
  --google-green: #34a853;

  /* Primary (Google Blue) */
  --primary-color: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #4285f4;
  --primary-surface: #e8f0fe;

  /* Text Colors */
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-disabled: #9aa0a6;
  --text-white: #ffffff;

  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gray: #f1f3f4;
  --bg-dark: #202124;

  /* Border & Surface */
  --border-color: #dadce0;
  --border-light: #e8eaed;
  --surface-1: #ffffff;
  --surface-2: #f8f9fa;
  --surface-3: #f1f3f4;

  /* Status Colors */
  --success-color: #34a853;
  --error-color: #ea4335;
  --warning-color: #fbbc05;
  --info-color: #4285f4;

  /* Shadows - Material Design */
  --shadow-1: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  --shadow-2: 0 1px 2px 0 rgba(60,64,67,0.3), 0 2px 6px 2px rgba(60,64,67,0.15);
  --shadow-3: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
  --shadow-4: 0 2px 3px 0 rgba(60,64,67,0.3), 0 6px 10px 4px rgba(60,64,67,0.15);
  --shadow-5: 0 4px 4px 0 rgba(60,64,67,0.3), 0 8px 12px 6px rgba(60,64,67,0.15);
  --shadow-hover: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);

  /* Typography */
  --font-display: 'Google Sans', 'Product Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.5;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.1s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ==================== RESET ==================== */

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: var(--primary-surface);
  color: var(--primary-color);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  text-decoration: underline;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul, ol {
  list-style: none;
}

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

/* Inputs */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Headings - Google Sans */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-sm {
  max-width: 800px;
}

.container-lg {
  max-width: 1400px;
}

/* ==================== GOOGLE-STYLE BUTTONS ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-2);
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--primary-surface);
  border-color: var(--primary-surface);
  text-decoration: none;
}

.btn-text {
  background: transparent;
  color: var(--primary-color);
  padding: 10px 16px;
}

.btn-text:hover {
  background: var(--primary-surface);
  text-decoration: none;
}

.btn-large {
  padding: 12px 32px;
  font-size: 16px;
}

.btn-icon {
  padding: 8px;
  border-radius: 50%;
}

.btn-icon:hover {
  background: var(--bg-gray);
}

/* Google-style colored buttons */
.btn-google-blue {
  background: var(--google-blue);
  color: white;
}

.btn-google-blue:hover {
  background: #3367d6;
  box-shadow: var(--shadow-2);
}

/* ==================== HEADER ==================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-2);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
}

/* Logo - Google Style */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: conic-gradient(
    from 0deg,
    var(--google-blue) 0deg 90deg,
    var(--google-red) 90deg 180deg,
    var(--google-yellow) 180deg 270deg,
    var(--google-green) 270deg 360deg
  );
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 3px;
  background: white;
  border-radius: 5px;
}

.logo-icon svg,
.logo-icon span {
  position: relative;
  z-index: 1;
  color: var(--google-blue);
}

/* Navigation */
.nav-links {
  display: flex;
  gap: var(--spacing-sm);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--bg-gray);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--primary-color);
  background: var(--primary-surface);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
}

.nav-toggle:hover {
  background: var(--bg-gray);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== FOOTER ==================== */

.site-footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-3xl) var(--spacing-lg) var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-2xl);
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: var(--spacing-2xl);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: var(--spacing-lg);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.footer-links ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-links ul li a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color var(--transition-base);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--primary-surface);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
}

/* ==================== CARDS ==================== */

.card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-elevated {
  box-shadow: var(--shadow-1);
  border: none;
}

.card-elevated:hover {
  box-shadow: var(--shadow-3);
}

/* ==================== SECTION STYLES ==================== */

.section {
  padding: var(--spacing-4xl) var(--spacing-lg);
}

.section-gray {
  background: var(--bg-gray);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--primary-surface);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==================== GOOGLE COLORS STRIP ==================== */

.google-colors-strip {
  display: flex;
  height: 4px;
}

.google-colors-strip span {
  flex: 1;
}

.google-colors-strip span:nth-child(1) { background: var(--google-blue); }
.google-colors-strip span:nth-child(2) { background: var(--google-red); }
.google-colors-strip span:nth-child(3) { background: var(--google-yellow); }
.google-colors-strip span:nth-child(4) { background: var(--google-green); }

/* ==================== BADGES ==================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: var(--primary-surface);
  color: var(--primary-color);
}

.badge-success {
  background: #e6f4ea;
  color: var(--success-color);
}

.badge-warning {
  background: #fef7e0;
  color: #e37400;
}

.badge-gray {
  background: var(--bg-gray);
  color: var(--text-secondary);
}

/* ==================== FORM INPUTS ==================== */

.input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.input:hover {
  border-color: var(--text-secondary);
}

.input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-surface);
}

.input.error {
  border-color: var(--error-color);
}

.input.error:focus {
  box-shadow: 0 0 0 2px rgba(234, 67, 53, 0.1);
}

/* ==================== UTILITIES ==================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-blue { color: var(--google-blue); }
.text-red { color: var(--google-red); }
.text-yellow { color: var(--google-yellow); }
.text-green { color: var(--google-green); }

.bg-white { background: var(--bg-white); }
.bg-gray { background: var(--bg-gray); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* ==================== ANIMATIONS ==================== */

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.3s ease forwards;
}

.animate-slide-up {
  animation: slide-up 0.4s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ==================== RESPONSIVE ==================== */

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-2);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: flex;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

  .section {
    padding: var(--spacing-3xl) var(--spacing-md);
  }
}
