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

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS - MATCHING MAIN SITE
═══════════════════════════════════════════════════════════ */
:root {
  --bg-base:       #0a0a0f;
  --bg-dark:       #12121a;
  --bg-card:       #1a1a26;
  --bg-card-hover: #1f1f2e;
  --bg-gradient:   linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  
  --border:        rgba(99, 102, 241, 0.15);
  --border-light:  rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.3);

  --primary:       #6366f1;
  --primary-hover: #7c3aed;
  --secondary:     #ec4899;
  --accent:        #06b6d4;
  
  --text-primary:  #f8fafc;
  --text-secondary:#cbd5e1;
  --text-muted:    #64748b;

  --white:         #ffffff;
  --success:       #10b981;
  --warning:       #f59e0b;
  --error:         #ef4444;

  --radius-sm:     8px;
  --radius:        16px;
  --radius-lg:     24px;
  --radius-xl:     32px;

  --shadow-card:   0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 8px 40px rgba(99, 102, 241, 0.2);

  --container:     1280px;
  
  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { 
  color: var(--text-secondary); 
  line-height: 1.7; 
  font-size: 1rem;
}

a { 
  text-decoration: none; 
  color: inherit; 
  transition: all 0.3s ease;
}

ul { list-style: none; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.page-main { flex: 1; }

/* ═══════════════════════════════════════════════════════════
   COMPONENTS — BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--bg-gradient);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(99, 102, 241, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary-hover);
  color: var(--primary-hover);
}

/* ═══════════════════════════════════════════════════════════
   LOGO & BRAND
═══════════════════════════════════════════════════════════ */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease;
}

.site-brand:hover {
  transform: scale(1.05);
}

.logo-svg {
  width: 48px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════════════════════════ */
.page-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

.page-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.page-header-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.page-header-back:hover { 
  color: var(--primary); 
}

.page-header-back svg { 
  width: 18px; 
  height: 18px; 
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO
═══════════════════════════════════════════════════════════ */
.page-hero {
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
              linear-gradient(180deg, var(--bg-base) 0%, var(--bg-dark) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.page-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   CONTENT BLOCKS
═══════════════════════════════════════════════════════════ */
.content-section {
  padding: 96px 0;
}

.content-section + .content-section {
  padding-top: 0;
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.content-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bg-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.content-block:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.content-block:hover::before {
  opacity: 1;
}

.content-block:last-child { 
  margin-bottom: 0; 
}

.content-block h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.content-block h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  margin-top: 32px;
  color: var(--text-primary);
}

.content-block p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.7;
}

.content-block p:last-child { 
  margin-bottom: 0; 
}

.content-block ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-left: 4px;
}

.content-block ul li {
  font-size: 1rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* Empty content placeholder */
.content-empty {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 120px 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.content-empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE — TEAM / INFO BLOCKS
═══════════════════════════════════════════════════════════ */
.about-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 0;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bg-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  padding: 16px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius);
  transition: all 0.4s ease;
}

.about-card:hover .about-card-icon {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.1);
}

.about-card-icon svg { 
  width: 100%; 
  height: 100%;
  color: var(--primary);
}

.about-card h3 { 
  margin-bottom: 16px;
  color: var(--white);
}

.about-card p { 
  font-size: 1rem;
  line-height: 1.6;
}

.about-intro-block {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 64px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.about-intro-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-gradient);
  opacity: 0.03;
  border-radius: var(--radius-lg);
}

.about-intro-block h2 { 
  margin-bottom: 24px; 
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.about-intro-block p { 
  font-size: 1.125rem; 
  max-width: 800px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li {
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-col ul li a { 
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE — PHOTOS AND ILLUSTRATIONS
═══════════════════════════════════════════════════════════ */
.team-photo-container,
.office-photo-container {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.team-photo,
.office-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.team-photo-caption,
.office-photo-caption {
  background: var(--bg-card-hover);
  padding: 20px;
  border-top: 1px solid var(--border);
}

.team-photo-caption p,
.office-photo-caption p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.tech-illustration,
.achievements-illustration,
.vision-illustration {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.tech-svg,
.achievements-svg,
.vision-svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.2));
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .about-grid-3 { grid-template-columns: 1fr; }
  .about-intro-block { padding: 48px 32px; }
  .footer-inner { 
    flex-direction: column; 
    gap: 48px;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .content-block { padding: 32px 24px; }
  .about-intro-block { padding: 40px 24px; }
  .page-header .container { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 16px; 
  }
  .footer-links { 
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px; 
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .content-block { padding: 28px 20px; }
  .about-intro-block { padding: 32px 20px; }
  .page-hero { padding: 64px 0; }
}