/* ============================================================
   SafeCloud — Base Styles
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg:          #0a0f1a;
  --surface:     #111827;
  --accent:      #00ff88;
  --accent-dark: #00cc6a;
  --txt:         #e2e8f0;
  --txt-dim:     #94a3b8;

  --font-body:    'DM Sans', sans-serif;
  --font-display: 'Space Mono', monospace;
  --font-size:    16px;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;

  --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.15);
  --shadow-glow-hover: 0 0 40px rgba(0, 255, 136, 0.3);
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size);
  background-color: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

.font-mono-display {
  font-family: var(--font-display);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* --- Layout Utilities --- */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
}

/* --- Spacing --- */
.section-pad {
  padding-block: clamp(3rem, 8vw, 5rem);
}

/* --- Background Utilities --- */
.bg-surface { background-color: var(--surface); }
.bg-bg      { background-color: var(--bg); }

/* --- Noise texture overlay --- */
.noise {
  position: relative;
}
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
.noise > * {
  position: relative;
  z-index: 2;
}

/* --- Grid background --- */
.grid-bg {
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Tag / Pill badges --- */
.tag-pill {
  display: inline-block;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.35);
}
.cta-btn.sm {
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
}

/* --- Ghost / Outline Button --- */
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--txt-dim);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  background: none;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.ghost-btn:hover {
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--accent);
}

/* --- Card (surface) --- */
.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 255, 136, 0.3);
}
.card.accent-border {
  border-color: rgba(0, 255, 136, 0.2);
}
.card.p-lg {
  padding: 2rem;
}

/* --- Icon wrapper --- */
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.icon-wrap.red   { background: rgba(239, 68, 68, 0.1); }
.icon-wrap.amber { background: rgba(245, 158, 11, 0.1); }
.icon-wrap.green { background: rgba(0, 255, 136, 0.1); }

/* --- Text utilities --- */
.text-accent  { color: var(--accent); }
.text-dim     { color: var(--txt-dim); }
.text-white   { color: #fff; }
.text-red     { color: #ef4444; }
.text-amber   { color: #f59e0b; }

.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }
.text-6xl  { font-size: 3.75rem; }

.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

.leading-relaxed { line-height: 1.7; }
.leading-tight   { line-height: 1.25; }

/* --- Comparison table --- */
.compare-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}
.compare-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.compare-table th {
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
  color: var(--txt-dim);
}
.compare-table th.label { text-align: left; }
.compare-table th.accent-col { color: var(--accent); }
.compare-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table td {
  padding: 0.75rem;
  color: var(--txt-dim);
  text-align: center;
}
.compare-table td.label { text-align: left; }
.compare-table td.yes   { color: var(--accent); }
.compare-table td.no    { color: #ef4444; }
.compare-table td.maybe { color: #f59e0b; }

/* --- Accordion --- */
.acc-item {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 1rem;
}
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.acc-trigger:hover { background: rgba(255, 255, 255, 0.02); }
.acc-trigger-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  font-family: var(--font-body);
}
.acc-chevron {
  color: var(--txt-dim);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.acc-chevron.rotated { transform: rotate(180deg); }
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.acc-content.open { max-height: 2000px; }
.acc-body {
  padding: 0 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
}
@media (max-width: 600px) {
  .acc-body { grid-template-columns: 1fr; }
}
.acc-item-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--txt-dim);
  padding: 0.25rem 0;
}
.acc-item-row svg { flex-shrink: 0; margin-top: 2px; }

/* --- Contact Form --- */
.form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.form-label { font-size: 0.875rem; color: var(--txt-dim); }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color 0.3s;
  outline: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(0, 255, 136, 0.5);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--txt-dim);
  opacity: 0.6;
}
.form-textarea { resize: none; }
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.form-success {
  display: none;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-lg);
  padding: 1rem;
  color: var(--accent);
  font-size: 0.875rem;
}
.form-success.visible { display: block; }

/* --- Partner grid --- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.partner-tile {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
}
.partner-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.partner-name { font-size: 0.875rem; color: #fff; font-weight: 600; }
.partner-sub  { font-size: 0.75rem; color: var(--txt-dim); }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(to right, rgba(0, 255, 136, 0.1), transparent);
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-block: 3.5rem;
}

/* --- Section header --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
}
.section-header p {
  color: var(--txt-dim);
  margin-top: 0.75rem;
  max-width: 36rem;
  margin-inline: auto;
}

/* --- Page header block --- */
.page-header {
  max-width: 48rem;
  margin-bottom: 3.5rem;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-top: 1.5rem;
}
.page-header p {
  color: var(--txt-dim);
  font-size: 1.125rem;
  margin-top: 1rem;
  line-height: 1.7;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
