/*
 * ShieldAuth - main stylesheet
 * v1.0
 */

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

:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: #000000;
  --card: #ffffff;
  --card-foreground: #000000;
  --primary: #000000;
  --primary-foreground: #ffffff;
  --secondary: #f5f5f5;
  --muted: #f5f5f5;
  --muted-foreground: #666666;
  --accent: #e5e5e5;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 0.5rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--foreground); }

a.nav-logo {
  text-decoration: none;
  color: inherit;
}


/* Layout */

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-medium {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-small {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 2rem;
}


/* Sections */

.section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.section-muted {
  background-color: rgba(245, 245, 245, 0.3);
}

.section-header {
  max-width: 36rem;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

.section-description {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.55);
}


/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 5rem;
  overflow: hidden;
  margin-top: -3.75rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(245, 245, 245, 0.3), var(--background), var(--background));
}

.hero-container {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.25rem; }
}

.hero-subtitle {
  color: rgba(0, 0, 0, 0.4);
}

.hero-description {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.6);
  max-width: 32rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.45);
}

.meta-divider {
  width: 1px;
  height: 0.75rem;
  background-color: var(--border);
}

.hero-image { position: relative; }
.hero-image img {
  width: 100%;
  height: auto;
}


/* Buttons */

.btn {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--foreground);
  color: var(--background);
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background-color: rgba(245, 245, 245, 0.5);
}

.btn-with-icon { gap: 0.625rem; }
.btn-with-icon svg { flex-shrink: 0; }


/* Grid */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* Cards */

.card {
  padding: 1.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: var(--background);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background-color: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: rgba(0, 0, 0, 0.7);
}

.card-title {
  font-size: 1.0625rem;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.card-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.55);
}


/* Features */

.feature { position: relative; }

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: rgba(0, 0, 0, 0.7);
}

.feature-title {
  font-size: 1rem;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.feature-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.55);
}


/* Platforms */

.platform-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--background), rgba(245, 245, 245, 0.1), var(--background));
}

.section-platforms .section-title {
  color: #000 !important;
}
.section-platforms .section-description {
  color: rgba(0, 0, 0, 0.75) !important;
}

.platform-image { position: relative; }
.platform-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}


/* Steps */

.steps { position: relative; }

.steps-line {
  display: none;
  position: absolute;
  top: 1.75rem;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border);
}
@media (min-width: 1024px) {
  .steps-line { display: block; }
}

.step { position: relative; }

.step-number {
  position: relative;
  z-index: 10;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: rgba(0, 0, 0, 0.3);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.step-title {
  font-size: 1rem;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.step-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.55);
}


/* Download */

.download-card {
  padding: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: var(--background);
}

.download-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .download-content { grid-template-columns: 1fr auto; }
}

.download-title {
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  font-weight: 500;
}
@media (min-width: 768px) {
  .download-title { font-size: 2.25rem; }
}

.download-description {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .download-buttons { flex-direction: row; }
}

.download-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.45);
}

.download-preview { width: 100%; }
@media (min-width: 1024px) {
  .download-preview { width: 12rem; }
}

.app-icon-card {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  background-color: rgba(245, 245, 245, 0.3);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.app-icon-large {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-info { text-align: center; }

.app-name {
  font-size: 1.25rem;
  margin-bottom: 0.125rem;
  font-weight: 500;
}

.app-version {
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.5);
}


/* Footer */

.footer {
  position: relative;
  border-top: 1px solid var(--border);
}

.footer > .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-tagline {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.5);
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--foreground); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(0, 0, 0, 0.6); }


/* Subpages */

.page-content {
  padding-top: 8rem;
  padding-bottom: 4rem;
  min-height: calc(100vh - 10rem);
}

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.page-description {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.55);
}

.docs-section { margin-bottom: 2.5rem; }

.docs-heading {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.docs-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.docs-list {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.docs-list li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 0.5rem;
}

.docs-list li strong { color: var(--foreground); }

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: rgba(245, 245, 245, 0.5);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.shortcut kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.375rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.shortcut span {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
}

.license-box {
  padding: 1.5rem;
  background-color: rgba(245, 245, 245, 0.5);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.6);
}

.license-box p { margin-bottom: 1rem; }
.license-box p:last-child { margin-bottom: 0; }
