/* Ysecurity - Global Styles */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --secondary: #34a853;
  --danger: #ea4335;
  --warning: #fbbc04;
  --dark: #202124;
  --gray: #5f6368;
  --light-gray: #e8eaed;
  --bg: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.nav-logo .shield { font-size: 1.6rem; }

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

.nav-links a {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-success { background: var(--secondary); color: var(--white); }
.btn-success:hover { background: #2d9249; color: var(--white); }

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

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

/* Sections */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

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

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 0.95rem; }

/* Pricing */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 16px 0;
}

.pricing-card .price-type {
  color: var(--gray);
  font-size: 1rem;
}

.pricing-card ul {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}

.pricing-card li {
  padding: 8px 0;
  color: var(--gray);
}

.pricing-card li::before {
  content: "✓ ";
  color: var(--secondary);
  font-weight: 700;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--light-gray);
  padding: 48px 24px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer ul { list-style: none; }

.footer li { margin-bottom: 8px; }

.footer a { color: var(--light-gray); font-size: 0.9rem; }
.footer a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Page header for inner pages */
.page-header {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}

.page-header h1 { font-size: 2.2rem; font-weight: 700; }
.page-header p { opacity: 0.9; margin-top: 8px; }

/* Content container for inner pages */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--dark);
}

.content h2:first-child { margin-top: 0; }

.content p, .content li {
  color: var(--gray);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.content ul, .content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

/* Payment form */
.payment-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px;
}

.payment-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.payment-box h2 {
  text-align: center;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.alert-success { background: #e6f4ea; color: #137333; border: 1px solid #ceead6; }
.alert-error { background: #fce8e6; color: #c5221f; border: 1px solid #f5c6cb; }
.alert-info { background: #e8f0fe; color: #1967d2; border: 1px solid #d2e3fc; }

/* Success page */
.success-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

.success-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.member-credentials {
  background: var(--bg);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

.member-credentials .field {
  margin-bottom: 12px;
}

.member-credentials .field-label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.member-credentials .field-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Courier New', monospace;
  user-select: all;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 60px 20px; }
  .section { padding: 48px 20px; }
  .section-title { font-size: 1.6rem; }

  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .nav-toggle { display: block; }
}
