/* ============================================
   NIXA Inc. — Design System
   Apple-inspired, modern, sleek
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #fbfbfd;
  --color-surface: #ffffff;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #86868b;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-border: #d2d2d7;
  --color-border-light: #e8e8ed;
  --color-dark-bg: #000000;
  --color-dark-surface: #1d1d1f;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1120px;
  --nav-height: 180px;
  --section-padding: 120px 0;
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--color-accent-hover);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

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

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 160px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
  margin: 4px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  padding: calc(var(--nav-height) + 40px) 0 120px;
  text-align: center;
  background: var(--color-bg);
}

.hero-logo {
  width: auto;
  height: 200px;
  margin: 0 auto 48px;
  object-fit: contain;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.375rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-secondary);
}

/* --- Brands Section --- */
.brands {
  padding: var(--section-padding);
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header p {
  margin-top: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.brand-card {
  background: var(--color-bg);
  border-radius: 20px;
  padding: 48px 40px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.brand-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  object-fit: contain;
}

.brand-icon-placeholder {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.brand-icon-placeholder.gcc { background: linear-gradient(135deg, #34c759, #30d158); }
.brand-icon-placeholder.node { background: linear-gradient(135deg, #5856d6, #af52de); }
.brand-icon-placeholder.teemi { background: linear-gradient(135deg, #ff9500, #ff3b30); }
.brand-icon-placeholder.apps { background: linear-gradient(135deg, #0071e3, #00c7be); }

.brand-card h3 {
  margin-bottom: 8px;
  color: var(--color-text);
}

.brand-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
  margin-bottom: 16px;
}

.brand-card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* --- About Section --- */
.about {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-top: 24px;
  font-size: 1.125rem;
}

/* --- Contact Section --- */
.contact {
  padding: var(--section-padding);
  background: var(--color-surface);
}

.contact-content {
  text-align: center;
}

.contact-email {
  display: inline-block;
  margin-top: 24px;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: color var(--transition);
}

.contact-email:hover {
  color: var(--color-accent-hover);
}

/* --- Footer --- */
.footer {
  padding: 24px 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

.footer-links a:hover {
  color: var(--color-text);
}

/* --- Legal Pages (Privacy, Support) --- */
.legal-page {
  padding: calc(var(--nav-height) + 40px) 0 120px;
  background: var(--color-bg);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.legal-content .last-updated {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.legal-content ul {
  margin: 0 0 16px 24px;
  color: var(--color-text-secondary);
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.6;
}

.legal-content a {
  color: var(--color-accent);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --nav-height: 80px;
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(251, 251, 253, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border-light);
  }

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

  .nav-inner {
    height: 80px;
  }

  .nav-logo {
    height: 56px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: calc(var(--nav-height) + 120px) 0 80px;
  }

  .legal-page {
    padding: calc(var(--nav-height) + 120px) 0 80px;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .brands-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    padding: 36px 28px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .brand-card {
    padding: 28px 20px;
  }
}
