:root {
  --primary-color: #0f172a;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --text-color: #334155;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-color: #ffffff;
  --section-bg: #f8fafc;
  --border-color: #e2e8f0;
  --container-width: 1100px;
  --container-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style-position: inside;
}

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

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

.container.narrow {
  max-width: var(--container-narrow);
}

.main-content {
  min-height: calc(100vh - 450px);
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 48px;
  text-align: center;
}

/* Header */
.header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.025em;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.95rem;
}

.nav a:hover, .nav a.active {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  padding: 120px 0;
  background: radial-gradient(circle at top right, #f1f5f9, #f8fafc);
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  letter-spacing: -0.05em;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--accent-color);
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: white;
}

/* App Grid & Cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.app-card {
  padding: 32px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
  background: white;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--accent-color);
}

.app-icon-placeholder {
  width: 64px;
  height: 64px;
  background: var(--section-bg);
  border-radius: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.app-icon-placeholder.Large {
  width: 120px;
  height: 120px;
  border-radius: 28px;
}

.app-icon-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.app-card h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.app-card p {
  color: var(--text-light);
  margin-bottom: 24px;
  flex-grow: 1;
}

.link {
  color: var(--accent-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link:hover {
  text-decoration: underline;
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.value-card {
  padding: 24px;
}

.value-card h3 {
  margin-bottom: 16px;
  font-size: 1.25rem;
  color: var(--primary-color);
}

/* Apps List (Page) */
.apps-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.app-item {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-color);
}

.app-item:last-child {
  border-bottom: none;
}

.app-info h2 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.tagline {
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.description {
  margin-bottom: 32px;
  font-size: 1.125rem;
  color: var(--text-color);
}

.app-actions {
  display: flex;
  gap: 16px;
}

/* App Detail Page */
.app-header {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.app-title-group h1 {
  font-size: 3rem;
  margin-bottom: 8px;
}

.app-badges {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.badge {
  padding: 4px 12px;
  background: var(--section-bg);
  color: var(--text-light);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.app-main-actions {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.app-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
}

.main-info section {
  margin-bottom: 48px;
}

.main-info h2 {
  margin-bottom: 24px;
  font-size: 1.75rem;
}

.main-info ul {
  padding-left: 0;
  list-style-type: none;
}

.main-info li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
}

.main-info li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 800;
}

.side-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.side-info .card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card.dark {
  background: var(--primary-color);
  color: white;
}

.card.dark h3 {
  color: white;
}

.card.dark p {
  color: #cbd5e1;
}

/* About Content */
.about-content section {
  margin-bottom: 80px;
}

.about-content h2 {
  margin-bottom: 24px;
  font-size: 2rem;
}

.lead {
  font-size: 1.5rem;
  color: var(--text-light);
  font-weight: 500;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-method {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.icon-placeholder {
  width: 48px;
  height: 48px;
  background: var(--section-bg);
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.icon-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card {
  padding: 40px;
  background: var(--section-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.card h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card p {
  margin-bottom: 20px;
}

/* Privacy Policy */
.privacy-policy-container {
  background: white;
}

.last-updated {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

.policy-content h3 {
  margin-top: 48px;
  margin-bottom: 20px;
  font-size: 1.75rem;
}

.policy-content h4 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.policy-content p, .policy-content ul {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.policy-content ul {
  padding-left: 24px;
  list-style-type: disc;
}

.policy-content li {
  margin-bottom: 12px;
}

.policy-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

/* Support Page */
.app-context {
  background: var(--section-bg);
  padding: 20px 28px;
  border-radius: 12px;
  margin-bottom: 40px;
  border-left: 4px solid var(--accent-color);
  font-size: 1.1rem;
}

.support-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.support-card {
  padding: 40px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: white;
}

.support-card h2 {
  margin-bottom: 20px;
  font-size: 1.75rem;
}

.faq-list {
  list-style: none;
  margin-top: 32px;
}

.faq-list li {
  margin-bottom: 32px;
}

.faq-list strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.faq-group {
  margin-bottom: 48px;
}

.faq-group h3 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.not-found {
  text-align: center;
  padding: 100px 0;
}

.not-found h1 {
  margin-bottom: 24px;
  font-size: 3rem;
}

.hero.secondary {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 800px;
}

.info-block {
  margin-bottom: 48px;
}

.info-block h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: #1e293b;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.1);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: #0f172a;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.steps-list {
  padding-left: 20px;
}

.steps-list li {
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: #334155;
}

/* Footer */
.support-card .steps-list,
.support-card .steps-list-alt {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.support-card .steps-list li,
.support-card .steps-list-alt li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.support-section-content {
  margin-top: 1rem;
}

.support-section-content p {
  margin-bottom: 0.75rem;
}

.support-section-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.support-section-content li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.support-tips-list {
  list-style: "✓ ";
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.support-tips-list li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

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

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-item strong {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-item span {
  font-weight: 500;
}

.footer {
  padding: 100px 0 40px;
  background-color: var(--primary-color);
  color: white;
  margin-top: 120px;
}

.footer .logo {
  color: white;
  margin-bottom: 20px;
  display: inline-block;
  font-size: 1.75rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 64px;
  margin-bottom: 80px;
}

.footer-brand {
  flex: 1;
  min-width: 280px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 1.1rem;
}

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

.link-group h4 {
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.link-group a {
  display: block;
  margin-bottom: 16px;
  color: #94a3b8;
  font-size: 1rem;
}

.link-group a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.developer-signature {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.developer-signature span {
  color: white;
  transition: all 0.3s ease;
  display: inline-block;
}

.developer-signature span:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .app-content-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .app-main-actions {
    margin-left: 0;
    width: 100%;
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero {
    padding: 80px 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .app-item {
    flex-direction: column;
    gap: 32px;
  }

  .header .container {
    flex-direction: column;
    gap: 24px;
  }

  .nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-grid, .support-options {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links {
    gap: 48px;
  }
}

@media (max-width: 480px) {
  .hero-actions, .app-actions, .app-main-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .app-title-group h1 {
    font-size: 2rem;
  }
}
