@property --primary-color {
  syntax: '<color>';
  initial-value: #f06;
  inherits: true;
}

@keyframes colorShift {
  0%   { --primary-color: #f06; }
  25%   { --primary-color: #90f; }
  50%   { --primary-color: #0cf; }
  75%   { --primary-color: #0f6; }
  100% { --primary-color: #f06; }
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #aaaaaa;
    --bg-color: #222;
    --text-color: #ccc;
    --card-bg: #1a1a1a;
    --border-color: #333;
    animation: colorShift 60s infinite alternate;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0rem 2rem 0.3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    display: inline;
    width: 110px;
    margin: 0;
    padding: 5px;
}

.logo h2 {
    display: inline;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0 5px;
    padding: 0;
    font-family: 'Futura', sans-serif;
    border-left: 1px solid var(--primary-color);
    padding: 10px 0 10px 10px;
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.2s;
}

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

nav a.active {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

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

.auth-card {
    max-width: 400px;
    margin: 1rem auto;
    background: var(--card-bg);
    color: var(--text-color);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card p {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}

div.input-grp {
    margin-bottom: 1rem;
}

div.input-grp label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

div.input-grp input {
    width: calc(100% - 20px);
    padding: 0.625rem 10px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
}

div.input-grp input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    display: inline-block;
}

.btn.cta {
    background: white;
    color: var(--bg-color);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: 1px solid white;
}

.btn.cta:hover {
    color: white;
    background: rgba(0,0,0,0.3);
    border-color: var(--primary-color);
}

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

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

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

.hero {
    position: relative;
    background: var(--primary-color);
    color: white;
    padding: 8rem 2rem 12rem;
    text-align: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -645px;
    left: -0.5%;
    width: 101%;
    height: 900px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800' preserveAspectRatio='none'%3E%3Cpath fill='%23222' fill-opacity='1' d='M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,160C672,128,768,96,864,112C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,800L1392,800C1344,800,1248,800,1152,800C1056,800,960,800,864,800C768,800,672,800,576,800C480,800,384,800,288,800C192,800,96,800,48,800L0,800Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero h1 {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    max-width: 80%;
    margin: 0 auto 2rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero .btn-group {
    position: relative;
    z-index: 2;
}

h3.plans-header:first-child {
    padding: 0 0 10px 0;
}

h3.plans-header {
    width: 100%;
    font-size: 2.3rem;
    font-weight: 300;
    padding: 50px 0 10px 0;
    text-align: center;
    border-bottom: 1px solid var(--primary-color);
    color: white;
}

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

div.container p > a {
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 3px 6px;
    transition: color 0.2s, background-color 0.2s;
}

div.container p > a:hover {
    background: var(--primary-color);
    color: white;
}

.plan-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    display: grid;
    grid-template-rows: 3.5rem 5rem auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.plan-card h3 {
    margin: 0 0 30px 0;
    font-size: 1.5rem;
}

.plan-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.plan-card .btn {
    justify-self: center;
    margin-top: 1rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 4rem 0 3rem 0;
}

.plan-price h6 {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: #777;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.plan-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

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

footer {
    background: #111;
    color: var(--text-color);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer a {
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

footer a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
