:root {
  --primary: #0097e6;
  --secondary: #40739e;
  --bg-dark: #0a0f14;
  --bg-card: #0f1419;
  --bg-elevated: #151c24;
  --text: #e8eaed;
  --text-muted: #8899a6;
  --border: #1e2a36;
  --glow: rgba(0, 151, 230, 0.15);
  --font: 'Avenir', 'Avenir Next', 'Helvetica Neue', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

/* header */
.site-header {
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo-shape {
  width: 28px;
  height: 28px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 77% 8%, 95% 29%, 99% 57%, 88% 83%, 64% 98%, 36% 98%, 12% 83%, 1% 57%, 5% 29%, 23% 8%);
  transition: transform 0.3s ease;
}

.logo:hover .logo-shape {
  transform: rotate(33deg);
}

.logo-text {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* main */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

/* hero */
.hero {
  padding: 4rem 0 6rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero h1 .secondary-accent {
  color: var(--secondary);
}

.hero-sub {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: #00a8ff;
  box-shadow: 0 0 30px var(--glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* sections */
section {
  margin-bottom: 5rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--primary);
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.card:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.card li {
  margin-bottom: 0.5rem;
}

/* about page */
.page-header {
  margin-bottom: 4rem;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 700px;
}

.content-block {
  margin-bottom: 3rem;
}

.content-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.content-block p {
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 1rem;
}

/* contact */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.contact-card:hover {
  border-color: var(--primary);
  background: var(--bg-elevated);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card span {
  font-size: 0.9rem;
}

/* footer */
.site-footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-weight: 300;
  font-style: italic;
}

/* animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.page-header,
section,
.card {
  animation: fadeUp 0.6s ease-out backwards;
}

.hero { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(1) { animation-delay: 0.15s; }
.card:nth-child(2) { animation-delay: 0.25s; }
.card:nth-child(3) { animation-delay: 0.35s; }

/* responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
  }
  
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  main {
    padding: 2rem 1rem;
  }
  
  .hero {
    padding: 2rem 0 4rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
